netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v4 0/4] net/sched: cleanup parsing prints in htb and qfq
@ 2023-04-21 17:53 Pedro Tammela
  2023-04-21 17:53 ` [PATCH net-next v4 1/4] net/sched: sch_htb: use extack on errors messages Pedro Tammela
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Pedro Tammela @ 2023-04-21 17:53 UTC (permalink / raw)
  To: netdev
  Cc: jhs, xiyou.wangcong, jiri, davem, edumazet, kuba, pabeni,
	simon.horman, Pedro Tammela

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.

v3->v4: Drop 'BITification' as suggested by Eric
v2->v3: Address suggestions by Jakub and Simon
v1->v2: Address suggestions by Jakub

Pedro Tammela (4):
  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_htb.c                           | 17 ++---
 net/sched/sch_qfq.c                           | 37 +++++-----
 .../tc-testing/tc-tests/qdiscs/qfq.json       | 72 +++++++++++++++++++
 3 files changed, 99 insertions(+), 27 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-04-22  4:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-21 17:53 [PATCH net-next v4 0/4] net/sched: cleanup parsing prints in htb and qfq Pedro Tammela
2023-04-21 17:53 ` [PATCH net-next v4 1/4] net/sched: sch_htb: use extack on errors messages Pedro Tammela
2023-04-21 17:53 ` [PATCH net-next v4 2/4] net/sched: sch_qfq: " Pedro Tammela
2023-04-21 17:53 ` [PATCH net-next v4 3/4] net/sched: sch_qfq: refactor parsing of netlink parameters Pedro Tammela
2023-04-21 17:53 ` [PATCH net-next v4 4/4] selftests: tc-testing: add more tests for sch_qfq Pedro Tammela
2023-04-22  4:08 ` [PATCH net-next v4 0/4] net/sched: cleanup parsing prints in htb and qfq Jakub Kicinski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).