]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
tc: fq: display unthrottle latency
authorEric Dumazet <edumazet@google.com>
Wed, 28 Sep 2016 13:23:15 +0000 (06:23 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 10 Oct 2016 02:15:13 +0000 (19:15 -0700)
In linux-4.9 fq packet scheduler got a new stat :

unthrottle_latency in nano second units.

Gives a good indication of system load or timer implementation
latencies.

Signed-off-by: Eric Dumazet <edumazet@google.com>
tc/q_fq.c

index 90147a6aa9f69de5d9a3cc01fff733c84beb3d7f..c9efbfc43632231c19754c1d8260da93bda2b5b7 100644 (file)
--- a/tc/q_fq.c
+++ b/tc/q_fq.c
@@ -312,6 +312,9 @@ static int fq_print_xstats(struct qdisc_util *qu, FILE *f,
 
        fprintf(f, ", %llu throttled", st->throttled);
 
+       if (st->unthrottle_latency_ns)
+               fprintf(f, ", %u ns latency", st->unthrottle_latency_ns);
+
        if (st->flows_plimit)
                fprintf(f, ", %llu flows_plimit", st->flows_plimit);