diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-03-19 01:37:18 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-03-21 21:31:35 -0400 |
commit | 907cdda5205b012eec7513f66713749b293188c9 (patch) | |
tree | 0488e7282c2d3748d90f8ceca78a183f905c4167 /include/linux | |
parent | 32a806c194ea112cfab00f558482dd97bee5e44e (diff) |
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>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/snmp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/snmp.h b/include/linux/snmp.h index 4435d1084755..d2a9aa3c6c88 100644 --- a/include/linux/snmp.h +++ b/include/linux/snmp.h | |||
@@ -227,6 +227,7 @@ enum | |||
227 | LINUX_MIB_SACKSHIFTFALLBACK, | 227 | LINUX_MIB_SACKSHIFTFALLBACK, |
228 | LINUX_MIB_TCPBACKLOGDROP, | 228 | LINUX_MIB_TCPBACKLOGDROP, |
229 | LINUX_MIB_TCPMINTTLDROP, /* RFC 5082 */ | 229 | LINUX_MIB_TCPMINTTLDROP, /* RFC 5082 */ |
230 | LINUX_MIB_TCPDEFERACCEPTDROP, | ||
230 | __LINUX_MIB_MAX | 231 | __LINUX_MIB_MAX |
231 | }; | 232 | }; |
232 | 233 | ||