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
235235
236236 __u32 tcpi_delivered;
237237 __u32 tcpi_delivered_ce;
238+
239+ __u64 tcpi_bytes_sent; /* RFC4898 tcpEStatsPerfHCDataOctetsOut */
238240 };
239241
240242 /* netlink attributes types for SCM_TIMESTAMPING_OPT_STATS */
@@ -257,7 +259,7 @@ enum { · 16 unmodified lines
257259 TCP_NLA_SND_SSTHRESH, /* Slow start size threshold */
258260 TCP_NLA_DELIVERED, /* Data pkts delivered incl. out-of-order */
259261 TCP_NLA_DELIVERED_CE, /* Like above but only ones w/ CE marks */
260−
262+ TCP_NLA_BYTES_SENT, /* Data bytes sent including retransmission */
261263 };
262264
263265 /* for TCP_MD5SIG socket option */