diff options
author | Wei Wang <weiwan@google.com> | 2017-12-07 16:12:00 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen@networkplumber.org> | 2017-12-08 10:27:57 -0800 |
commit | 00ac78d39c29f74df636346722664fd762a6b0f8 (patch) | |
tree | cea1735c51249a45fdf76c54c80e767d2bf53e8e | |
parent | 39be47fb5ed756b951ee7325b11099eb117fd5fd (diff) | |
download | iproute2-00ac78d39c29f74df636346722664fd762a6b0f8.tar.gz |
ss: print tcpi_rcv_ssthresh
tcpi_rcv_ssthresh is an important stats when debugging receive side
behavior.
Add it to the ss output.
Signed-off-by: Wei Wang <weiwan@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
-rw-r--r-- | misc/ss.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -751,6 +751,7 @@ struct tcpstat { double rcv_rtt; double min_rtt; int rcv_space; + unsigned int rcv_ssthresh; unsigned long long busy_time; unsigned long long rwnd_limited; unsigned long long sndbuf_limited; @@ -2058,6 +2059,8 @@ static void tcp_stats_print(struct tcpstat *s) printf(" rcv_rtt:%g", s->rcv_rtt); if (s->rcv_space) printf(" rcv_space:%d", s->rcv_space); + if (s->rcv_ssthresh) + printf(" rcv_ssthresh:%u", s->rcv_ssthresh); if (s->not_sent) printf(" notsent:%u", s->not_sent); if (s->min_rtt) @@ -2304,6 +2307,7 @@ static void tcp_show_info(const struct nlmsghdr *nlh, struct inet_diag_msg *r, s.fackets = info->tcpi_fackets; s.reordering = info->tcpi_reordering; s.rcv_space = info->tcpi_rcv_space; + s.rcv_ssthresh = info->tcpi_rcv_ssthresh; s.cwnd = info->tcpi_snd_cwnd; if (info->tcpi_snd_ssthresh < 0xFFFF) |