Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] net: dsa: realtek: rtl8365mb: offload ETS strict priority
@ 2026-11-24 10:20 Oleksij Rempel
  2026-11-24 10:20 ` [PATCH net-next 1/2] net: dsa: realtek: rtl8365mb: default the egress scheduler to WFQ Oleksij Rempel
  2026-11-24 10:20 ` [PATCH net-next 2/2] net: dsa: realtek: rtl8365mb: offload ETS strict priority scheduling Oleksij Rempel
  0 siblings, 2 replies; 5+ messages in thread
From: Oleksij Rempel @ 2026-11-24 10:20 UTC (permalink / raw)
  To: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Simon Horman, Linus Walleij, Luiz Angelo Daros de Luca,
	Alvin Šipraga, Andrew Lunn, Vladimir Oltean
  Cc: netdev, kernel, Oleksij Rempel

This series adds strict priority egress scheduling to the rtl8365mb
switch ports.

It uses the ETS qdisc interface, which is enough to express strict
priority. By default, the driver sets all queues of a port to weighted
fair queuing (WFQ) with equal weights. No queue is served before
another.

To enable strict priority on a port:

  tc qdisc replace dev swp1 root handle 1: ets strict 8

The qdisc must have as many bands as the port has queues, eight on
this switch.

To go back to the default:

  tc qdisc del dev swp1 root

These commands change only the egress scheduling of the port they
name. The CPU port stays on WFQ. The ETS priomap is not offloaded. The
ETS patch explains why.

Tested on an RTL8365MB-VC.

---
Oleksij Rempel (2):
      net: dsa: realtek: rtl8365mb: default the egress scheduler to WFQ
      net: dsa: realtek: rtl8365mb: offload ETS strict priority scheduling

 drivers/net/dsa/realtek/realtek.h        |  14 ++++
 drivers/net/dsa/realtek/rtl8365mb_main.c |   8 +++
 drivers/net/dsa/realtek/rtl8365mb_qos.c  | 107 +++++++++++++++++++++++++++++
 drivers/net/dsa/realtek/rtl8365mb_qos.h  |   3 +
 drivers/net/dsa/realtek/rtl83xx-qos.c    | 113 +++++++++++++++++++++++++++++++
 drivers/net/dsa/realtek/rtl83xx-qos.h    |   2 +
 6 files changed, 247 insertions(+)
---
base-commit: 2208ab00f4f213ade91ab775e7f8c4dacdcc856e
change-id: 20261123-rtl8365mb-ets-strict-113214ad321a

Best regards,
-- 
Oleksij Rempel <o.rempel@pengutronix.de>


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

end of thread, other threads:[~2026-11-25 12:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-24 10:20 [PATCH net-next 0/2] net: dsa: realtek: rtl8365mb: offload ETS strict priority Oleksij Rempel
2026-11-24 10:20 ` [PATCH net-next 1/2] net: dsa: realtek: rtl8365mb: default the egress scheduler to WFQ Oleksij Rempel
2026-11-24 10:20 ` [PATCH net-next 2/2] net: dsa: realtek: rtl8365mb: offload ETS strict priority scheduling Oleksij Rempel
2026-11-25 10:23   ` netdev-bot+sashiko
2026-11-25 12:38     ` Oleksij Rempel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox