mbox series

[net-next,v3,0/5] net/sched: cleanup parsing prints in htb and qfq

Message ID 20230420164928.237235-1-pctammela@mojatatu.com (mailing list archive)
Headers show
Series net/sched: cleanup parsing prints in htb and qfq | expand

Message

Pedro Tammela April 20, 2023, 4:49 p.m. UTC
These two qdiscs are still using prints on dmesg to report parsing
errors. Since the parsing code has access to extack, convert these error
messages to extack.

QFQ also had the opportunity to remove some redundant code in the
parameters parsing by transforming some attributes into parsing
policies.

v2->v3: Address suggestions by Jakub and Simon
v1->v2: Address suggestions by Jakub

Pedro Tammela (5):
  net/sched: sch_htb: use extack on errors messages
  net/sched: sch_qfq: use extack on errors messages
  net/sched: sch_qfq: refactor parsing of netlink parameters
  selftests: tc-testing: add more tests for sch_qfq
  net/sched: sch_qfq: BITify two bound definitions

 net/sched/sch_htb.c                           | 17 ++---
 net/sched/sch_qfq.c                           | 39 +++++-----
 .../tc-testing/tc-tests/qdiscs/qfq.json       | 72 +++++++++++++++++++
 3 files changed, 100 insertions(+), 28 deletions(-)