public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Victor Nogueira <victor@mojatatu.com>
Cc: dsahern@kernel.org, jhs@mojatatu.com, deren.teo@outlook.com,
	andrew@lunn.ch, netdev@vger.kernel.org
Subject: Re: [PATCH iproute2 0/3] Add JSON output support to the remaining qdiscs
Date: Wed, 25 Feb 2026 13:26:23 -0800	[thread overview]
Message-ID: <20260225132623.0395441f@phoenix.local> (raw)
In-Reply-To: <20260211170725.1514427-1-victor@mojatatu.com>

On Wed, 11 Feb 2026 14:07:22 -0300
Victor Nogueira <victor@mojatatu.com> wrote:

> Since qdisc core already assumes all qdiscs are able to output JSON,
> add JSON output support to the remaning qdiscs (HFSC, QFQ, muiltiq)
> so that a JSON qdisc dump outputs valid JSON.
> 
> Victor Nogueira (3):
>   tc: Add JSON output support to HFSC
>   tc: Add JSON output support to QFQ
>   tc: Add JSON output support to multiq
> 
>  tc/q_hfsc.c   | 29 ++++++++++++++++++-----------
>  tc/q_multiq.c |  4 +++-
>  tc/q_qfq.c    |  8 ++++----
>  3 files changed, 25 insertions(+), 16 deletions(-)
> 

Good start but some minor issues found by AI patch review 

Must-fix bug in patch 1/3 (HFSC): Copy-paste error on line printing
level — it uses st->period instead of st->level, silently emitting
wrong data in both text and JSON modes.

Design concerns worth discussing:

HFSC d (delay) field is emitted as a human-readable string in JSON
("5ms") rather than a raw numeric value (microseconds), which goes
against the iproute2 JSON convention that JSON should carry raw values
for script consumption

HFSC service curve keys use flat compound names with spaces ("rt m1")
rather than nested JSON objects — functional but awkward for consumers

multiq bands emits a compound string ("3/16") rather than separate
numeric fields — once this JSON format ships it becomes API

  parent reply	other threads:[~2026-02-25 21:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-11 17:07 [PATCH iproute2 0/3] Add JSON output support to the remaining qdiscs Victor Nogueira
2026-02-11 17:07 ` [PATCH iproute2 1/3] tc: Add JSON output support to HFSC Victor Nogueira
2026-02-11 17:07 ` [PATCH iproute2 2/3] tc: Add JSON output support to QFQ Victor Nogueira
2026-02-11 17:07 ` [PATCH iproute2 3/3] tc: Add JSON output support to multiq Victor Nogueira
2026-02-25 21:26 ` Stephen Hemminger [this message]
2026-03-03 13:08   ` [PATCH iproute2 0/3] Add JSON output support to the remaining qdiscs Victor Nogueira

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260225132623.0395441f@phoenix.local \
    --to=stephen@networkplumber.org \
    --cc=andrew@lunn.ch \
    --cc=deren.teo@outlook.com \
    --cc=dsahern@kernel.org \
    --cc=jhs@mojatatu.com \
    --cc=netdev@vger.kernel.org \
    --cc=victor@mojatatu.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox