History

tcp: record pkts sent and retransmistted

Add two stats in SCM_TIMESTAMPING_OPT_STATS: TCP_NLA_DATA_SEGS_OUT: total data packets sent including retransmission TCP_NLA_TOTAL_RETRANS: total data packets retransmitted The names are picked to be consistent with corresponding fields in TCP_INFO. This allows applications that are using the timestamping API to measure latency stats to also retrive retransmission rate of application write.

Yuchung Cheng committed 9 years ago

Commit 7e981021 parent f33f4ac2 files · +7 −1Browse files

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

Unified · Split

include/uapi/linux/tcp.h+2−0
@@ -227,6 +227,8 @@ enum { · 226 unmodified lines
227 TCP_NLA_BUSY, /* Time (usec) busy sending data */227 TCP_NLA_BUSY, /* Time (usec) busy sending data */
228 TCP_NLA_RWND_LIMITED, /* Time (usec) limited by receive window */228 TCP_NLA_RWND_LIMITED, /* Time (usec) limited by receive window */
229 TCP_NLA_SNDBUF_LIMITED, /* Time (usec) limited by send buffer */229 TCP_NLA_SNDBUF_LIMITED, /* Time (usec) limited by send buffer */
230 TCP_NLA_DATA_SEGS_OUT, /* Data pkts sent including retransmission */
231 TCP_NLA_TOTAL_RETRANS, /* Data pkts retransmitted */
230};232};
231 233
232/* for TCP_MD5SIG socket option */234/* for TCP_MD5SIG socket option */