diff options
| author | Wei Wang <weiwan@google.com> | 2018-07-31 20:46:22 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2018-08-01 12:56:10 -0400 |
| commit | fb31c9b9f6c85b1bad569ecedbde78d9e37cd87b (patch) | |
| tree | 7568903b4ab7b5784169b51d342ffb28ec6e31e2 /include/uapi/linux | |
| parent | ba113c3aa79a7f941ac162d05a3620bdc985c58d (diff) | |
tcp: add data bytes retransmitted stats
Introduce a new TCP stat to record the number of bytes retransmitted
(RFC4898 tcpEStatsPerfOctetsRetrans) and expose it in both tcp_info
(TCP_INFO) and opt_stats (SOF_TIMESTAMPING_OPT_STATS).
Signed-off-by: Wei Wang <weiwan@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Acked-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/tcp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/tcp.h b/include/uapi/linux/tcp.h index 1c70ed287c3b..c31f5100b744 100644 --- a/include/uapi/linux/tcp.h +++ b/include/uapi/linux/tcp.h | |||
| @@ -237,6 +237,7 @@ struct tcp_info { | |||
| 237 | __u32 tcpi_delivered_ce; | 237 | __u32 tcpi_delivered_ce; |
| 238 | 238 | ||
| 239 | __u64 tcpi_bytes_sent; /* RFC4898 tcpEStatsPerfHCDataOctetsOut */ | 239 | __u64 tcpi_bytes_sent; /* RFC4898 tcpEStatsPerfHCDataOctetsOut */ |
| 240 | __u64 tcpi_bytes_retrans; /* RFC4898 tcpEStatsPerfOctetsRetrans */ | ||
| 240 | }; | 241 | }; |
| 241 | 242 | ||
| 242 | /* netlink attributes types for SCM_TIMESTAMPING_OPT_STATS */ | 243 | /* netlink attributes types for SCM_TIMESTAMPING_OPT_STATS */ |
| @@ -260,6 +261,7 @@ enum { | |||
| 260 | TCP_NLA_DELIVERED, /* Data pkts delivered incl. out-of-order */ | 261 | TCP_NLA_DELIVERED, /* Data pkts delivered incl. out-of-order */ |
| 261 | TCP_NLA_DELIVERED_CE, /* Like above but only ones w/ CE marks */ | 262 | TCP_NLA_DELIVERED_CE, /* Like above but only ones w/ CE marks */ |
| 262 | TCP_NLA_BYTES_SENT, /* Data bytes sent including retransmission */ | 263 | TCP_NLA_BYTES_SENT, /* Data bytes sent including retransmission */ |
| 264 | TCP_NLA_BYTES_RETRANS, /* Data bytes retransmitted */ | ||
| 263 | }; | 265 | }; |
| 264 | 266 | ||
| 265 | /* for TCP_MD5SIG socket option */ | 267 | /* for TCP_MD5SIG socket option */ |
