diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-07-16 23:22:25 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-16 23:22:25 -0400 |
commit | 63231bddf6514778792d3784f63822473d250fc0 (patch) | |
tree | d380f9ca00fa0ca2cd74142c5b51b97717ef1e9a /net/ipv4/tcp_input.c | |
parent | 81cc8a75d944fa39fc333c2c329c8e8b3c62cada (diff) |
mib: add net to TCP_INC_STATS_BH
Same as before - the sock is always there to get the net from,
but there are also some places with the net already saved on
the stack.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_input.c')
-rw-r--r-- | net/ipv4/tcp_input.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index d6ea970a1513..01e8004911b4 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c | |||
@@ -4795,7 +4795,7 @@ int tcp_rcv_established(struct sock *sk, struct sk_buff *skb, | |||
4795 | tcp_data_snd_check(sk); | 4795 | tcp_data_snd_check(sk); |
4796 | return 0; | 4796 | return 0; |
4797 | } else { /* Header too small */ | 4797 | } else { /* Header too small */ |
4798 | TCP_INC_STATS_BH(TCP_MIB_INERRS); | 4798 | TCP_INC_STATS_BH(sock_net(sk), TCP_MIB_INERRS); |
4799 | goto discard; | 4799 | goto discard; |
4800 | } | 4800 | } |
4801 | } else { | 4801 | } else { |
@@ -4934,7 +4934,7 @@ slow_path: | |||
4934 | tcp_replace_ts_recent(tp, TCP_SKB_CB(skb)->seq); | 4934 | tcp_replace_ts_recent(tp, TCP_SKB_CB(skb)->seq); |
4935 | 4935 | ||
4936 | if (th->syn && !before(TCP_SKB_CB(skb)->seq, tp->rcv_nxt)) { | 4936 | if (th->syn && !before(TCP_SKB_CB(skb)->seq, tp->rcv_nxt)) { |
4937 | TCP_INC_STATS_BH(TCP_MIB_INERRS); | 4937 | TCP_INC_STATS_BH(sock_net(sk), TCP_MIB_INERRS); |
4938 | NET_INC_STATS_BH(LINUX_MIB_TCPABORTONSYN); | 4938 | NET_INC_STATS_BH(LINUX_MIB_TCPABORTONSYN); |
4939 | tcp_reset(sk); | 4939 | tcp_reset(sk); |
4940 | return 1; | 4940 | return 1; |
@@ -4957,7 +4957,7 @@ step5: | |||
4957 | return 0; | 4957 | return 0; |
4958 | 4958 | ||
4959 | csum_error: | 4959 | csum_error: |
4960 | TCP_INC_STATS_BH(TCP_MIB_INERRS); | 4960 | TCP_INC_STATS_BH(sock_net(sk), TCP_MIB_INERRS); |
4961 | 4961 | ||
4962 | discard: | 4962 | discard: |
4963 | __kfree_skb(skb); | 4963 | __kfree_skb(skb); |