History

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.

Abdul Kabbani committed 6 years ago

Commit 32efcc01 parent 6efca897 files · +18 −1Browse files

Showing the changes to include/uapi/linux (2 of 7 files). Show all

Unified · Split

2 files
  1. include/uapi/linux/snmp.h +2 −0
  2. include/uapi/linux/tcp.h +1 −0
include/uapi/linux/snmp.h+2−0
@@ -285,6 +285,8 @@ enum · 284 unmodified lines
285 LINUX_MIB_TCPRCVQDROP, /* TCPRcvQDrop */285 LINUX_MIB_TCPRCVQDROP, /* TCPRcvQDrop */
286 LINUX_MIB_TCPWQUEUETOOBIG, /* TCPWqueueTooBig */286 LINUX_MIB_TCPWQUEUETOOBIG, /* TCPWqueueTooBig */
287 LINUX_MIB_TCPFASTOPENPASSIVEALTKEY, /* TCPFastOpenPassiveAltKey */287 LINUX_MIB_TCPFASTOPENPASSIVEALTKEY, /* TCPFastOpenPassiveAltKey */
288 LINUX_MIB_TCPTIMEOUTREHASH, /* TCPTimeoutRehash */
289 LINUX_MIB_TCPDUPLICATEDATAREHASH, /* TCPDuplicateDataRehash */
288 __LINUX_MIB_MAX290 __LINUX_MIB_MAX
289};291};
290 292
include/uapi/linux/tcp.h+1−0
@@ -311,6 +311,7 @@ enum { · 310 unmodified lines
311 TCP_NLA_DSACK_DUPS, /* DSACK blocks received */311 TCP_NLA_DSACK_DUPS, /* DSACK blocks received */
312 TCP_NLA_REORD_SEEN, /* reordering events seen */312 TCP_NLA_REORD_SEEN, /* reordering events seen */
313 TCP_NLA_SRTT, /* smoothed RTT in usecs */313 TCP_NLA_SRTT, /* smoothed RTT in usecs */
314 TCP_NLA_TIMEOUT_REHASH, /* Timeout-triggered rehash attempts */
314};315};
315 316
316/* for TCP_MD5SIG socket option */317/* for TCP_MD5SIG socket option */