Re: [iproute2 2/3] tc: jsonify tbf qdisc parameters

2019-05-17 Thread Stephen Hemminger
On Fri, 17 May 2019 11:35:16 -0600 David Ahern wrote: > On 5/6/19 10:18 AM, Nir Weiner wrote: > > > if (prate64) { > > - fprintf(f, "peakrate %s ", sprint_rate(prate64, b1)); > > + print_string(PRINT_ANY, "peakrate", "peakrate %s ", > > sprint_rate(prate64, b1)); > >

Re: [iproute2 2/3] tc: jsonify tbf qdisc parameters

2019-05-17 Thread David Ahern
On 5/6/19 10:18 AM, Nir Weiner wrote: > if (prate64) { > - fprintf(f, "peakrate %s ", sprint_rate(prate64, b1)); > + print_string(PRINT_ANY, "peakrate", "peakrate %s ", > sprint_rate(prate64, b1)); > if (qopt->mtu || qopt->peakrate.mpu) { >

[iproute2 2/3] tc: jsonify tbf qdisc parameters

2019-05-06 Thread Nir Weiner
Add json output to tbf qdisc parameters. Acked-by: John Haxby Signed-off-by: Nir Weiner Suggested-by: Liran Alon --- tc/q_tbf.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tc/q_tbf.c b/tc/q_tbf.c index b9465b20d2be..fd824e67e4f2 100644 --- a/tc/q_