tcp: Add SNMP counter for DEFER_ACCEPT
authorEric Dumazet <eric.dumazet@gmail.com>
Fri, 19 Mar 2010 05:37:18 +0000 (05:37 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Mar 2010 01:31:35 +0000 (18:31 -0700)
commit907cdda5205b012eec7513f66713749b293188c9
tree0488e7282c2d3748d90f8ceca78a183f905c4167
parent32a806c194ea112cfab00f558482dd97bee5e44e
tcp: Add SNMP counter for DEFER_ACCEPT

Its currently hard to diagnose when ACK frames are dropped because an
application set TCP_DEFER_ACCEPT on its listening socket.

See http://bugzilla.kernel.org/show_bug.cgi?id=15507

This patch adds a SNMP value, named TCPDeferAcceptDrop

netstat -s | grep TCPDeferAcceptDrop
    TCPDeferAcceptDrop: 0

This counter is incremented every time we drop a pure ACK frame received
by a socket in SYN_RECV state because its SYNACK retrans count is lower
than defer_accept value.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/snmp.h
net/ipv4/proc.c
net/ipv4/tcp_minisocks.c