]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: export count for rehash attempts
authorAbdul Kabbani <akabbani@google.com>
Fri, 24 Jan 2020 21:34:02 +0000 (16:34 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 26 Jan 2020 14:28:47 +0000 (15:28 +0100)
commitb66b621815341c46c87d2804ca1bf2ca1774e1b2
tree7f4749c42a0737777290daab96d93d5d09c6457e
parent3ce795aa157d15f0dcb2323ded358acacd05595a
tcp: export count for rehash attempts

Using IPv6 flow-label to swiftly route around avoid congested or
disconnected network path can greatly improve TCP reliability.

This patch adds SNMP counters and a OPT_STATS counter to track both
host-level and connection-level statistics. Network administrators
can use these counters to evaluate the impact of this new ability better.

Export count for rehash attempts to
1) two SNMP counters: TcpTimeoutRehash (rehash due to timeouts),
   and TcpDuplicateDataRehash (rehash due to receiving duplicate
   packets)
2) Timestamping API SOF_TIMESTAMPING_OPT_STATS.

Signed-off-by: Abdul Kabbani <akabbani@google.com>
Signed-off-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: Kevin(Yudong) Yang <yyd@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/tcp.h
include/uapi/linux/snmp.h
include/uapi/linux/tcp.h
net/ipv4/proc.c
net/ipv4/tcp.c
net/ipv4/tcp_input.c
net/ipv4/tcp_timer.c