Add two new fields to struct tcp_info, to report sk_pacing_rate and sk_max_pacing_rate to monitoring applications, as ss from iproute2. User exported fields are 64bit, even if kernel is currently using 32bit fields. lpaa5:~# ss -i .. skmem:(r0,rb357120,t0,tb2097152,f1584,w1980880,o0,bl0) ts sack cubic wscale:6,6 rto:400 rtt:0.875/0.75 mss:1448 cwnd:1 ssthresh:12 send 13.2Mbps pacing_rate 3336.2Mbps unacked:15 retrans:1/5448 lost:15 rcv_space:29200
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -186,6 +186,9 @@ struct tcp_info { · 185 unmodified lines | |||
| 186 | __u32 tcpi_rcv_space; | 186 | __u32 tcpi_rcv_space; |
| 187 | 187 | ||
| 188 | __u32 tcpi_total_retrans; | 188 | __u32 tcpi_total_retrans; |
| 189 | |||
| 190 | __u64 tcpi_pacing_rate; | ||
| 191 | __u64 tcpi_max_pacing_rate; | ||
| 189 | }; | 192 | }; |
| 190 | 193 | ||
| 191 | /* for TCP_MD5SIG socket option */ | 194 | /* for TCP_MD5SIG socket option */ |