projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82fac05
)
[TCP]: One NET_INC_STATS() could be NET_INC_STATS_BH in tcp_v4_err()
author
Eric Dumazet
<dada1@cosmosbay.com>
Fri, 20 Oct 2006 07:22:25 +0000
(
00:22
-0700)
committer
David S. Miller
<davem@davemloft.net>
Fri, 20 Oct 2006 07:22:25 +0000
(
00:22
-0700)
I believe this NET_INC_STATS() call can be replaced by
NET_INC_STATS_BH(), a little bit cheaper.
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_ipv4.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv4/tcp_ipv4.c
b/net/ipv4/tcp_ipv4.c
index 6bbd98575172b0f140897c5be3cec7d46b42fcdf..22ef8bd26620ab122d56ef2220ef2f43e9ab4442 100644
(file)
--- a/
net/ipv4/tcp_ipv4.c
+++ b/
net/ipv4/tcp_ipv4.c
@@
-373,7
+373,7
@@
void tcp_v4_err(struct sk_buff *skb, u32 info)
seq = ntohl(th->seq);
if (sk->sk_state != TCP_LISTEN &&
!between(seq, tp->snd_una, tp->snd_nxt)) {
- NET_INC_STATS(LINUX_MIB_OUTOFWINDOWICMPS);
+ NET_INC_STATS
_BH
(LINUX_MIB_OUTOFWINDOWICMPS);
goto out;
}