iproute2/misc
Neal Cardwell 2f0f9aef94 ss: output TCP BBR diag information
Dump useful TCP BBR state information from a struct tcp_bbr_info that
was grabbed using the inet_diag API.

We tolerate info that is shorter or longer than expected, in case the
kernel is older or newer than the ss binary. We simply print the
minimum of what is expected from the kernel and what is provided from
the kernel. We use the same trick as that used for struct tcp_info:
when the info from the kernel is shorter than we hoped, we pad the end
with zeroes, and don't print fields if they are zero.

The BBR output looks like:
  bbr:(bw:1.2Mbps,mrtt:18.965,pacing_gain:2.88672,cwnd_gain:2.88672)

The motivation here is to be consistent with DCTCP, which looks like:
  dctcp(ce_state:23,alpha:23,ab_ecn:23,ab_tot:23)

Signed-off-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Soheil Hassas Yeganeh <soheil@google.com>
2016-09-21 16:29:35 -07:00
..
.gitignore Add ignore files to make using git easier 2006-08-08 12:04:38 -07:00
Makefile Make builds default to quiet mode 2016-05-31 12:13:07 -07:00
arpd.c Use C99 style initializers everywhere 2016-07-20 12:05:24 -07:00
ifstat.c json_writer: Removed automatic json-object type from the constructor 2016-07-20 12:02:02 -07:00
lnstat.c Replace malloc && memset by calloc 2016-07-20 12:05:24 -07:00
lnstat.h iproute2: various header include fixes for compiling with musl libc 2014-05-28 16:51:39 -07:00
lnstat_util.c Replace malloc && memset by calloc 2016-07-20 12:05:24 -07:00
nstat.c nstat: add sctp snmp support 2016-09-08 14:29:36 -07:00
rtacct.c misc: fix style issues 2016-03-21 11:56:36 -07:00
ss.c ss: output TCP BBR diag information 2016-09-21 16:29:35 -07:00
ssfilter.h ss: Add support to filter on device 2016-06-28 12:09:01 -07:00
ssfilter.y ss: Add support to filter on device 2016-06-28 12:09:01 -07:00