tcp: add OFO snmp counters
authorEric Dumazet <edumazet@google.com>
Mon, 16 Jul 2012 01:41:36 +0000 (01:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Jul 2012 05:12:00 +0000 (22:12 -0700)
commita6df1ae9383697c4eb1365176002f154982325ad
tree8afa8c1407bebeef9774dd673cef9d36efed07bd
parent141e369de698f2e17bf716b83fcc647ddcb2220c
tcp: add OFO snmp counters

Add three SNMP TCP counters, to better track TCP behavior
at global stage (netstat -s), when packets are received
Out Of Order (OFO)

TCPOFOQueue : Number of packets queued in OFO queue

TCPOFODrop  : Number of packets meant to be queued in OFO
              but dropped because socket rcvbuf limit hit.

TCPOFOMerge : Number of packets in OFO that were merged with
              other packets.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/snmp.h
net/ipv4/proc.c
net/ipv4/tcp_input.c