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).
Showing the changes to include/uapi/linux (1 of 4 files). Show all
Unified · Split
| @@ -235,6 +235,8 @@ struct tcp_info { · 234 unmodified lines | ||
| 235 | 235 | |
| 236 | 236 | __u32 tcpi_delivered; |
| 237 | 237 | __u32 tcpi_delivered_ce; |
| 238 | + | |
| 239 | + __u64 tcpi_bytes_sent; /* RFC4898 tcpEStatsPerfHCDataOctetsOut */ | |
| 238 | 240 | }; |
| 239 | 241 | |
| 240 | 242 | /* netlink attributes types for SCM_TIMESTAMPING_OPT_STATS */ |
| @@ -257,7 +259,7 @@ enum { · 16 unmodified lines | ||
| 257 | 259 | TCP_NLA_SND_SSTHRESH, /* Slow start size threshold */ |
| 258 | 260 | TCP_NLA_DELIVERED, /* Data pkts delivered incl. out-of-order */ |
| 259 | 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 | 265 | /* for TCP_MD5SIG socket option */ |