]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: snmp stats for Fast Open, SYN rtx, and data pkts
authorYuchung Cheng <ycheng@google.com>
Mon, 3 Mar 2014 20:31:36 +0000 (12:31 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Mar 2014 20:58:03 +0000 (15:58 -0500)
commit28fe1d2e0a5e56090236c685cc2824f1ec976102
treeff123f596ed847774357b6d17526793bafb8b10a
parent787ff89e730698cf73c622e49ef970269a9bbf31
tcp: snmp stats for Fast Open, SYN rtx, and data pkts

Add the following snmp stats:

TCPFastOpenActiveFail: Fast Open attempts (SYN/data) failed beacuse
the remote does not accept it or the attempts timed out.

TCPSynRetrans: number of SYN and SYN/ACK retransmits to break down
retransmissions into SYN, fast-retransmits, timeout retransmits, etc.

TCPOrigDataSent: number of outgoing packets with original data (excluding
retransmission but including data-in-SYN). This counter is different from
TcpOutSegs because TcpOutSegs also tracks pure ACKs. TCPOrigDataSent is
more useful to track the TCP retransmission rate.

Change TCPFastOpenActive to track only successful Fast Opens to be symmetric to
TCPFastOpenPassive.

Signed-off-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Nandita Dukkipati <nanditad@google.com>
Signed-off-by: Lawrence Brakmo <brakmo@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/snmp.h
net/ipv4/proc.c
net/ipv4/tcp_input.c
net/ipv4/tcp_ipv4.c
net/ipv4/tcp_output.c
net/ipv4/tcp_timer.c
net/ipv6/tcp_ipv6.c