summaryrefslogtreecommitdiffstats
path: root/net/ipv4/proc.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2014-02-25 14:34:32 +0100
committerDavid S. Miller <davem@davemloft.net>2014-02-26 15:23:30 -0500
commit8e165e20348b53583f6c6cb45865b89209f4aa13 (patch)
tree26eab521fe1c2ac3aca539d832d747f2c42bc930 /net/ipv4/proc.c
parent2ebe21fdde1c92ef1654f23d29194145be0e1ddc (diff)
downloadlinux-stable-8e165e20348b53583f6c6cb45865b89209f4aa13.tar.gz
linux-stable-8e165e20348b53583f6c6cb45865b89209f4aa13.tar.bz2
linux-stable-8e165e20348b53583f6c6cb45865b89209f4aa13.zip
net: tcp: add mib counters to track zero window transitions
Three counters are added: - one to track when we went from non-zero to zero window - one to track the reverse - one counter incremented when we want to announce zero window, but can't because we would shrink current window. Suggested-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Florian Westphal <fw@strlen.de> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/proc.c')
-rw-r--r--net/ipv4/proc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv4/proc.c b/net/ipv4/proc.c
index a6c8a80ec9d6..99d2e9b6fac9 100644
--- a/net/ipv4/proc.c
+++ b/net/ipv4/proc.c
@@ -280,6 +280,9 @@ static const struct snmp_mib snmp4_net_list[] = {
SNMP_MIB_ITEM("TCPSpuriousRtxHostQueues", LINUX_MIB_TCPSPURIOUS_RTX_HOSTQUEUES),
SNMP_MIB_ITEM("BusyPollRxPackets", LINUX_MIB_BUSYPOLLRXPACKETS),
SNMP_MIB_ITEM("TCPAutoCorking", LINUX_MIB_TCPAUTOCORKING),
+ SNMP_MIB_ITEM("TCPFromZeroWindowAdv", LINUX_MIB_TCPFROMZEROWINDOWADV),
+ SNMP_MIB_ITEM("TCPToZeroWindowAdv", LINUX_MIB_TCPTOZEROWINDOWADV),
+ SNMP_MIB_ITEM("TCPWantZeroWindowAdv", LINUX_MIB_TCPWANTZEROWINDOWADV),
SNMP_MIB_SENTINEL
};