History

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).

Wei Wang committed 8 years ago

Commit ba113c31 parent 984988a4 files · +13 −1Browse files

Showing the changes to include/uapi/linux (1 of 4 files). Show all

Unified · Split

include/uapi/linux/tcp.h+3−1
@@ -235,6 +235,8 @@ struct tcp_info { · 234 unmodified lines
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 { · 16 unmodified lines
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 */