Control: tags -1 forwarded patch On Fri, 23 Oct 2020 16:08:31 +0200 =?iso-8859-1?Q?ILEXIA_-_Rom=E9o_GINON?= <romeo.gi...@ilexia.com> wrote: > Package: iproute2 > > Version: 4.20.0-2 > > Severity : important > > > > I have some issues with JSON output on tc qdisc. > > > > Impact : tc command return malformated json when using mqprio with priomap > or dsmark. > > On both test case ("kind": "dsmark" or "kind": "mqprio" with "root": true) > associated "options" are not in a valid json format. > > > > > > Test Case : > > 1: /usr/sbin/tc qdisc add dev $IFACE root mqprio num_tc 2 queues 4@0 4@4 hw > 1 mode channel map 0 0 0 1 0 1 0 0' > > 2: /usr/sbin/tc qdisc add dev $IFACE handle 1:0 root dsmark indices 64 > set_tc_index > > > > Command : tc -j -p qdisc show > > > > > > > Malformated > > > { > > "kind": "mqprio", > > "handle": "8021:", > > "dev": "enp1s0f0", > > "root": true, > > "options": { tc 2 map 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 > > queues:(0:3) (4:7) > > mode:channel > > shaper:dcb} >
I sent a patch upstream to json-ify the output, but I do not have hardware capable of configuring mqprio. If you do and want to help test it, it's here: https://patchwork.ozlabs.org/project/netdev/patch/20201127152625.61874-1-bl...@debian.org/ -- Kind regards, Luca Boccassi
signature.asc
Description: This is a digitally signed message part