From: Stephen Hemminger <sthem...@microsoft.com> This patch set adds some utility routines and then converts all the remaining TC queue discipline managers to support JSON output.
v2 - consolidate the utility patches - do all the remaining qdisc's Stephen Hemminger (31): tc: use JSON in error handling tc: use const char in util tc: convert stats print to json tc/cbq: use sprint_rate tc/util: remove unused print functions tc/util: add print helpers for JSON tc/red: use new JSON helpers tc/sfq: add json support tc/fq: support JSON output tc/mqprio: implement JSON output tc/drr: implement JSON output tc/rr: implement JSON output tc/qfq: implement JSON tc/sfb: implement JSON output tc/multiq: implement JSON output tc/util: allow signed value for time tc/codel: implement JSON output tc/fifo: implement JSON output tc/tbf: implement JSON output format tc/choke: implement JSON output tc/hhf: implement JSON output tc/pie: implement JSON output tc/gred: implement JSON output tc/netem: implement JSON output tc/dsmark: implement JSON output tc/cbs: convert to JSON output tc/cbq: convert to JSON output tc/atm: convert to JSON output tc/hfsc: convert to JSON output tc/htb: implement JSON output tc/fq_codel: use JSON helpers tc/q_atm.c | 38 +++++++------ tc/q_cbq.c | 80 ++++++++++++++------------- tc/q_cbs.c | 10 ++-- tc/q_choke.c | 25 +++++---- tc/q_codel.c | 35 ++++++------ tc/q_drr.c | 10 ++-- tc/q_dsmark.c | 27 ++++++---- tc/q_fifo.c | 9 ++-- tc/q_fq.c | 103 ++++++++++++++++++++--------------- tc/q_fq_codel.c | 38 ++++--------- tc/q_gred.c | 73 +++++++++++++------------ tc/q_hfsc.c | 26 ++++----- tc/q_hhf.c | 24 ++++----- tc/q_htb.c | 53 ++++++++++-------- tc/q_mqprio.c | 134 ++++++++++++++++++++++++--------------------- tc/q_multiq.c | 3 +- tc/q_netem.c | 94 ++++++++++++++++---------------- tc/q_pie.c | 33 ++++++------ tc/q_qfq.c | 8 +-- tc/q_red.c | 13 ++--- tc/q_rr.c | 16 ++++-- tc/q_sfb.c | 56 +++++++++++-------- tc/q_sfq.c | 65 +++++++++++++--------- tc/q_tbf.c | 48 +++++++++-------- tc/tc.c | 19 ++++--- tc/tc_util.c | 140 ++++++++++++++++++++++++++++-------------------- tc/tc_util.h | 18 ++++--- 27 files changed, 648 insertions(+), 550 deletions(-) -- 2.18.0