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.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -227,6 +227,8 @@ enum { · 226 unmodified lines | ||
| 227 | 227 | TCP_NLA_BUSY, /* Time (usec) busy sending data */ |
| 228 | 228 | TCP_NLA_RWND_LIMITED, /* Time (usec) limited by receive window */ |
| 229 | 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 | 234 | /* for TCP_MD5SIG socket option */ |