tc: fq_codel: fix class stat deficit is signed int
Subsystems (2)
PATCH 1/1 tc: fq_codel: fix class stat deficit is signed int
The fq_codel class stat deficit is a signed int. This is a regression from when JSON output was added.
Fixes 997f2dc19378 ("tc: Add JSON output of fq_codel stats")
Signed-off-by Benjamin Lee <[email protected]>
--- tc/q_fq_codel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tc/q_fq_codel.c +1 -1
@@ -264,7 +264,7 @@ static int fq_codel_print_xstats(struct qdisc_util *qu, FILE *f, st->qdisc_stats.old_flows_len); }if (st->type ==TCA_FQ_CODEL_XSTATS_CLASS ) { -print_uint (PRINT_ANY ,"deficit" ," deficit %u" , +print_int (PRINT_ANY ,"deficit" ," deficit %d" , st->class_stats.deficit);print_uint (PRINT_ANY ,"count" ," count %u" , st->class_stats.count);
Signature · 1 line
2.25.1
Stephen Hemminger
AppliedQuoted 6 lines · On Tue, 14 Apr 2020 21:11:12 -0700 Benjamin Lee <[email protected]> wrote:
The
fq_codelclass stat deficit is a signed int. This is a regression from when JSON output was added.Fixes 997f2dc19378 ("tc: Add JSON output of fq_codel stats")Signed-off-by Benjamin Lee <[email protected]>---
Applied, thanks