From 067396574d820d15b0a98ec75bd950674cb991ad Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 25 Nov 2022 10:48:02 -0800 Subject: [PATCH] tc: put size table options in json object Missed this part from earlier change. Fixes: 6af6f02cce42 ("tc: add json support to size table") Signed-off-by: Stephen Hemminger --- tc/tc_stab.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tc/tc_stab.c b/tc/tc_stab.c index 06dc1b134..0f9440034 100644 --- a/tc/tc_stab.c +++ b/tc/tc_stab.c @@ -117,6 +117,7 @@ void print_size_table(struct rtattr *rta) memcpy(&s, RTA_DATA(tb[TCA_STAB_BASE]), MIN(RTA_PAYLOAD(tb[TCA_STAB_BASE]), sizeof(s))); + open_json_object("stab"); print_string(PRINT_FP, NULL, " ", NULL); if (s.linklayer) @@ -135,5 +136,6 @@ void print_size_table(struct rtattr *rta) if (s.tsize) print_uint(PRINT_ANY, "tsize", "tsize %u ", s.tsize); + close_json_object(); } } -- 2.47.3