]> git.baikalelectronics.ru Git - kernel.git/commit
net: tcp: use NET_INC_STATS()
authorEric Dumazet <edumazet@google.com>
Tue, 25 Feb 2014 12:31:03 +0000 (04:31 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Feb 2014 20:19:47 +0000 (15:19 -0500)
commitb7beb7cf7b706e775589452047e1137eae4759ce
tree69f714ca5c2b2260bbcad206464b0bdba7be9a97
parenta633dfb16fec617cab312369b2bc4599be43ffd3
net: tcp: use NET_INC_STATS()

While LINUX_MIB_TCPSPURIOUS_RTX_HOSTQUEUES can only be incremented
in tcp_transmit_skb() from softirq (incoming message or timer
activation), it is better to use NET_INC_STATS() instead of
NET_INC_STATS_BH() as tcp_transmit_skb() can be called from process
context.

This will avoid copy/paste confusion when/if we want to add
other SNMP counters in tcp_transmit_skb()

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Hannes Frederic Sowa <hannes@stressinduktion.org>
Cc: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_output.c