]> git.karo-electronics.de Git - linux-beck.git/commit
tcp: SYN packets are now simply consumed
authorEric Dumazet <edumazet@google.com>
Fri, 22 Apr 2016 05:13:01 +0000 (22:13 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Apr 2016 19:48:10 +0000 (15:48 -0400)
commit0aea76d35c9651d55bbaf746e7914e5f9ae5a25d
treed0416ab07371c5bb704fd324e117183022b743b8
parent1bc7fe64b60b40d50e42ba4bb870bbfb95d64e21
tcp: SYN packets are now simply consumed

We now have proper per-listener but also per network namespace counters
for SYN packets that might be dropped.

We replace the kfree_skb() by consume_skb() to be drop monitor [1]
friendly, and remove an obsolete comment.
FastOpen SYN packets can carry payload in them just fine.

[1] perf record -a -g -e skb:kfree_skb sleep 1; perf report

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c