History

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.

Yafang Shao committed 8 years ago

Commit ea5d0c31 parent 83607343 files · +8 −2Browse files

Showing the changes to include/uapi/linux (1 of 3 files). Show all

Unified · Split

include/uapi/linux/snmp.h+1−0
@@ -280,6 +280,7 @@ enum · 279 unmodified lines
280280 LINUX_MIB_TCPDELIVEREDCE, /* TCPDeliveredCE */
281281 LINUX_MIB_TCPACKCOMPRESSED, /* TCPAckCompressed */
282282 LINUX_MIB_TCPZEROWINDOWDROP, /* TCPZeroWindowDrop */
283+ LINUX_MIB_TCPRCVQDROP, /* TCPRcvQDrop */
283284 __LINUX_MIB_MAX
284285 };
285286