- Add further upstream-suggested backports - Fix for missing newline in last line of ss output
33 lines
1.2 KiB
Diff
33 lines
1.2 KiB
Diff
From 67a2a5552508a09f27f4e6206cb91e52fd07ded3 Mon Sep 17 00:00:00 2001
|
|
From: Benjamin Lee <ben@b1c1l1.com>
|
|
Date: Tue, 14 Apr 2020 21:11:12 -0700
|
|
Subject: [PATCH] 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 <ben@b1c1l1.com>
|
|
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
|
|
(cherry picked from commit f03ad792f3cdef5ade92392db6710441b35b47dd)
|
|
Signed-off-by: Phil Sutter <psutter@redhat.com>
|
|
---
|
|
tc/q_fq_codel.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/tc/q_fq_codel.c b/tc/q_fq_codel.c
|
|
index d002940da6b78..009eee42d4af9 100644
|
|
--- a/tc/q_fq_codel.c
|
|
+++ b/tc/q_fq_codel.c
|
|
@@ -263,7 +263,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);
|
|
--
|
|
2.27.0
|
|
|