History

tcp: export sender limits chronographs to TCP_INFO

This patch exports all the sender chronograph measurements collected in the previous patches to TCP_INFO interface. Note that busy time exported includes all the other sending limits (rwnd-limited, sndbuf-limited). Internally the time unit is jiffy but externally the measurements are in microseconds for future extensions.

Francis Yan committed 9 years ago

Commit efd90171 parent b0f71bd2 files · +24 −0Browse files

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

Unified · Split

include/uapi/linux/tcp.h+4−0
@@ -214,6 +214,10 @@ struct tcp_info { · 213 unmodified lines
214214 __u32 tcpi_data_segs_out; /* RFC4898 tcpEStatsDataSegsOut */
215215
216216 __u64 tcpi_delivery_rate;
217+
218+ __u64 tcpi_busy_time; /* Time (usec) busy sending data */
219+ __u64 tcpi_rwnd_limited; /* Time (usec) limited by receive window */
220+ __u64 tcpi_sndbuf_limited; /* Time (usec) limited by send buffer */
217221 };
218222
219223 /* for TCP_MD5SIG socket option */