From 39f8caeb96ee123fcacd9281139da076d6117b16 Mon Sep 17 00:00:00 2001 From: Eric Dumazet Date: Wed, 28 Sep 2016 06:23:15 -0700 Subject: [PATCH] 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 --- tc/q_fq.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.47.2