[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180710210558.20278-14-stephen@networkplumber.org>
Date: Tue, 10 Jul 2018 14:05:40 -0700
From: Stephen Hemminger <stephen@...workplumber.org>
To: netdev@...r.kernel.org
Cc: Stephen Hemminger <sthemmin@...rosoft.com>,
Stephen Hemminger <stephen@...workplumber.org>
Subject: [PATCH v2 iproute2-next 13/31] tc/qfq: implement JSON
From: Stephen Hemminger <sthemmin@...rosoft.com>
Signed-off-by: Stephen Hemminger <stephen@...workplumber.org>
---
tc/q_qfq.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tc/q_qfq.c b/tc/q_qfq.c
index eb8fa4b84927..0bb52ad6340b 100644
--- a/tc/q_qfq.c
+++ b/tc/q_qfq.c
@@ -94,13 +94,13 @@ static int qfq_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
parse_rtattr_nested(tb, TCA_QFQ_MAX, opt);
if (tb[TCA_QFQ_WEIGHT]) {
- fprintf(f, "weight %u ",
- rta_getattr_u32(tb[TCA_QFQ_WEIGHT]));
+ print_uint(PRINT_ANY, "weight", "weight %u ",
+ rta_getattr_u32(tb[TCA_QFQ_WEIGHT]));
}
if (tb[TCA_QFQ_LMAX]) {
- fprintf(f, "maxpkt %u ",
- rta_getattr_u32(tb[TCA_QFQ_LMAX]));
+ print_uint(PRINT_ANY, "maxpkt", "maxpkt %u ",
+ rta_getattr_u32(tb[TCA_QFQ_LMAX]));
}
return 0;
--
2.18.0
Powered by blists - more mailing lists