diff options
| author | Wei Wang <weiwan@google.com> | 2018-07-31 20:46:21 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2018-08-01 12:56:10 -0400 |
| commit | ba113c3aa79a7f941ac162d05a3620bdc985c58d (patch) | |
| tree | 6ac064d13a2920d19c52998bb91e138916fccae3 /include/uapi/linux | |
| parent | 984988aa72188453f8c8a42dcf94bba1c57e73aa (diff) | |
tcp: add data bytes sent stats
Introduce a new TCP stat to record the number of bytes sent
(RFC4898 tcpEStatsPerfHCDataOctetsOut) 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 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/uapi/linux/tcp.h b/include/uapi/linux/tcp.h index e3f6ed8a7064..1c70ed287c3b 100644 --- a/include/uapi/linux/tcp.h +++ b/include/uapi/linux/tcp.h | |||
| @@ -235,6 +235,8 @@ struct tcp_info { | |||
| 235 | 235 | ||
| 236 | __u32 tcpi_delivered; | 236 | __u32 tcpi_delivered; |
| 237 | __u32 tcpi_delivered_ce; | 237 | __u32 tcpi_delivered_ce; |
| 238 | |||
| 239 | __u64 tcpi_bytes_sent; /* RFC4898 tcpEStatsPerfHCDataOctetsOut */ | ||
| 238 | }; | 240 | }; |
| 239 | 241 | ||
| 240 | /* netlink attributes types for SCM_TIMESTAMPING_OPT_STATS */ | 242 | /* netlink attributes types for SCM_TIMESTAMPING_OPT_STATS */ |
| @@ -257,7 +259,7 @@ enum { | |||
| 257 | TCP_NLA_SND_SSTHRESH, /* Slow start size threshold */ | 259 | TCP_NLA_SND_SSTHRESH, /* Slow start size threshold */ |
| 258 | TCP_NLA_DELIVERED, /* Data pkts delivered incl. out-of-order */ | 260 | TCP_NLA_DELIVERED, /* Data pkts delivered incl. out-of-order */ |
| 259 | TCP_NLA_DELIVERED_CE, /* Like above but only ones w/ CE marks */ | 261 | TCP_NLA_DELIVERED_CE, /* Like above but only ones w/ CE marks */ |
| 260 | 262 | TCP_NLA_BYTES_SENT, /* Data bytes sent including retransmission */ | |
| 261 | }; | 263 | }; |
| 262 | 264 | ||
| 263 | /* for TCP_MD5SIG socket option */ | 265 | /* for TCP_MD5SIG socket option */ |
