]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
ss: dctcp changes
authorEric Dumazet <edumazet@google.com>
Fri, 8 May 2015 20:28:40 +0000 (13:28 -0700)
committerStephen Hemminger <shemming@brocade.com>
Mon, 11 May 2015 16:16:43 +0000 (09:16 -0700)
Missing space before dctcp: markers.

With dctcp, cwnd=2 is pretty common, just display cwnd value even
if cwnd has this value, it makes parsing easier.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
misc/ss.c

index 68961fcc92f8a6ad4ab40e0ecd2dbe4049c78093..870cad185341b5732295e0bb95f6c9d96b346154 100644 (file)
--- a/misc/ss.c
+++ b/misc/ss.c
@@ -1684,7 +1684,7 @@ static void tcp_stats_print(struct tcpstat *s)
 
        if (s->mss)
                printf(" mss:%d", s->mss);
-       if (s->cwnd && s->cwnd != 2)
+       if (s->cwnd)
                printf(" cwnd:%d", s->cwnd);
        if (s->ssthresh)
                printf(" ssthresh:%d", s->ssthresh);
@@ -1692,11 +1692,11 @@ static void tcp_stats_print(struct tcpstat *s)
        if (s->dctcp && s->dctcp->enabled) {
                struct dctcpstat *dctcp = s->dctcp;
 
-               printf("dctcp:(ce_state:%u,alpha:%u,ab_ecn:%u,ab_tot:%u)",
+               printf(" dctcp:(ce_state:%u,alpha:%u,ab_ecn:%u,ab_tot:%u)",
                                dctcp->ce_state, dctcp->alpha, dctcp->ab_ecn,
                                dctcp->ab_tot);
        } else if (s->dctcp) {
-               printf("dctcp:fallback_mode");
+               printf(" dctcp:fallback_mode");
        }
 
        if (s->send_bps)