• Eric Dumazet's avatar
    net: tcp: use NET_INC_STATS() · 9a9bfd03
    Eric Dumazet authored
    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: default avatarEric Dumazet <edumazet@google.com>
    Cc: Hannes Frederic Sowa <hannes@stressinduktion.org>
    Cc: Florian Westphal <fw@strlen.de>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    9a9bfd03
tcp_output.c 92.3 KB