tcp: increment sk_drops for dropped rx packets
authorEric Dumazet <edumazet@google.com>
Fri, 1 Apr 2016 15:52:19 +0000 (08:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Apr 2016 02:11:20 +0000 (22:11 -0400)
commit532182cd610782db8c18230c2747626562032205
tree6a2e21d238971e8eaccb22a872a1506a31f6f420
parent15239302edd46b184e758048253541fb211e315e
tcp: increment sk_drops for dropped rx packets

Now ss can report sk_drops, we can instruct TCP to increment
this per socket counter when it drops an incoming frame, to refine
monitoring and debugging.

Following patch takes care of listeners drops.

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