]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: add new SNMP counter for drops when try to queue in rcv queue
authorYafang Shao <laoar.shao@gmail.com>
Thu, 28 Jun 2018 04:22:56 +0000 (00:22 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 30 Jun 2018 09:43:53 +0000 (18:43 +0900)
commit7baa4411c7326591f9ba0adb08cfac9aff524594
tree75f4e63b128510f799324bc81ce59fedb930ffb1
parent8290e796192b0860441c8115e740482c407203cb
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>
include/uapi/linux/snmp.h
net/ipv4/proc.c
net/ipv4/tcp_input.c