summaryrefslogtreecommitdiff
path: root/include/uapi/linux/snmp.h
diff options
context:
space:
mode:
authorYafang Shao <laoar.shao@gmail.com>2018-06-28 07:22:56 +0300
committerDavid S. Miller <davem@davemloft.net>2018-06-30 12:43:53 +0300
commitea5d0c32498e1a08ff5f3dbeafa4d74895851b0d (patch)
tree75f4e63b128510f799324bc81ce59fedb930ffb1 /include/uapi/linux/snmp.h
parent83607344d667315687e1a5ddd2ad2fbbff22cc43 (diff)
downloadlinux-ea5d0c32498e1a08ff5f3dbeafa4d74895851b0d.tar.xz
tcp: add new SNMP counter for drops when try to queue in rcv queue
When sk_rmem_alloc is larger than the receive buffer and we can't schedule more memory for it, the skb will be dropped. In above situation, if this skb is put into the ofo queue, LINUX_MIB_TCPOFODROP is incremented to track it. While if this skb is put into the receive queue, there's no record. So a new SNMP counter is introduced to track this behavior. LINUX_MIB_TCPRCVQDROP: Number of packets meant to be queued in rcv queue but dropped because socket rcvbuf limit hit. Signed-off-by: Yafang Shao <laoar.shao@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/snmp.h')
-rw-r--r--include/uapi/linux/snmp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/snmp.h b/include/uapi/linux/snmp.h
index 97517f36a5f9..e5ebc83827ab 100644
--- a/include/uapi/linux/snmp.h
+++ b/include/uapi/linux/snmp.h
@@ -280,6 +280,7 @@ enum
LINUX_MIB_TCPDELIVEREDCE, /* TCPDeliveredCE */
LINUX_MIB_TCPACKCOMPRESSED, /* TCPAckCompressed */
LINUX_MIB_TCPZEROWINDOWDROP, /* TCPZeroWindowDrop */
+ LINUX_MIB_TCPRCVQDROP, /* TCPRcvQDrop */
__LINUX_MIB_MAX
};