I believe this NET_INC_STATS() call can be replaced by  NET_INC_STATS_BH(), a 
little bit cheaper.

Signed-off-by: Eric Dumazet <[EMAIL PROTECTED]>
--- linux/net/ipv4/tcp_ipv4.c.orig      2006-10-19 17:37:22.000000000 +0200
+++ linux-ed/net/ipv4/tcp_ipv4.c        2006-10-19 17:37:43.000000000 +0200
@@ -373,7 +373,7 @@
        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;
        }
 

Reply via email to