From: Eric Dumazet Date: Wed, 28 Sep 2016 13:23:15 +0000 (-0700) Subject: tc: fq: display unthrottle latency X-Git-Tag: v4.9.0~69 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39f8caeb96ee123fcacd9281139da076d6117b16;p=thirdparty%2Fiproute2.git tc: fq: display unthrottle latency 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 --- diff --git a/tc/q_fq.c b/tc/q_fq.c index 90147a6aa..c9efbfc43 100644 --- 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);