]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: Increment LISTENOVERFLOW and LISTENDROPS in tcp_v4_conn_request()
authorNivedita Singhvi <niv@us.ibm.com>
Mon, 28 Jan 2013 17:52:37 +0000 (17:52 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Jan 2013 20:43:04 +0000 (15:43 -0500)
commit14e122aa1a554b49dc7c1aa936c2f2f07d6e719d
treee38ca04c8441572c52a5d8db7bc0e20376ec42a1
parent17acf54b4173826de4abe93c438a3e025175fe1d
tcp: Increment LISTENOVERFLOW and LISTENDROPS in tcp_v4_conn_request()

We drop a connection request if the accept backlog is full and there are
sufficient packets in the syn queue to warrant starting drops. Increment the
appropriate counters so this isn't silent, for accurate stats and help in
debugging.

This patch assumes LINUX_MIB_LISTENDROPS is a superset of/includes the
counter LINUX_MIB_LISTENOVERFLOWS.

Signed-off-by: Nivedita Singhvi <niv@us.ibm.com>
Acked-by: Vijay Subramanian <subramanian.vijay@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_ipv4.c