diff options
author | Yafang Shao <laoar.shao@gmail.com> | 2018-06-24 16:02:54 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-06-26 04:49:08 +0200 |
commit | fb223502ec0889444965f602f57b1f45f9e9845e (patch) | |
tree | 08a4895a31a307722691a1f6abdb1e44c658dece /net/ipv4/proc.c | |
parent | Merge branch 'NAPI-gro-hash' (diff) | |
download | linux-fb223502ec0889444965f602f57b1f45f9e9845e.tar.xz linux-fb223502ec0889444965f602f57b1f45f9e9845e.zip |
tcp: add SNMP counter for zero-window drops
It will be helpful if we could display the drops due to zero window or no
enough window space.
So a new SNMP MIB entry is added to track this behavior.
This entry is named LINUX_MIB_TCPZEROWINDOWDROP and published in
/proc/net/netstat in TcpExt line as TCPZeroWindowDrop.
Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
Signed-off-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/proc.c b/net/ipv4/proc.c index 77350c1256ce..225ef3433fe5 100644 --- a/net/ipv4/proc.c +++ b/net/ipv4/proc.c @@ -287,6 +287,7 @@ static const struct snmp_mib snmp4_net_list[] = { SNMP_MIB_ITEM("TCPDelivered", LINUX_MIB_TCPDELIVERED), SNMP_MIB_ITEM("TCPDeliveredCE", LINUX_MIB_TCPDELIVEREDCE), SNMP_MIB_ITEM("TCPAckCompressed", LINUX_MIB_TCPACKCOMPRESSED), + SNMP_MIB_ITEM("TCPZeroWindowDrop", LINUX_MIB_TCPZEROWINDOWDROP), SNMP_MIB_SENTINEL }; |