The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH net-next v2 00/10] net: dsa: realtek: rtl8365mb: DCB ingress QoS offload
@ 2026-11-12  8:37 Oleksij Rempel
  2026-11-12  8:37 ` [PATCH net-next v2 01/10] net: ieee8021q: print traffic type and queue count with %u Oleksij Rempel
                   ` (9 more replies)
  0 siblings, 10 replies; 12+ messages in thread
From: Oleksij Rempel @ 2026-11-12  8:37 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, linux-kernel, Oleksij Rempel, kernel

Add ingress QoS offload for the RTL8365MB switch through the dcbnl app
interface: a per-port default priority, PCP trust and DSCP trust. The
mapping helpers go to net/core/ieee8021q_helpers.c so other drivers
can share them.

Two changes are visible to users. The driver now rejects a devicetree
port that the chip does not have. With a default priority set, an
untagged frame that leaves a VLAN-tagged port carries that priority as
its PCP.

Tested on an RTL8365MB-VC with eight queues.

ETS scheduling and CPU-tag pre-classification will follow in separate
series.

v1:
https://lore.kernel.org/r/20261002115850.962676-1-o.rempel@pengutronix.de

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
---
Oleksij Rempel (10):
      net: ieee8021q: print traffic type and queue count with %u
      net: ieee8021q: add pcp_to_tt()
      net: ieee8021q: clarify the tt_to_tc() traffic-class mapping
      net: ieee8021q: add tt_to_pcp()
      net: dsa: realtek: rtl8365mb: describe the ports of each chip
      net: dsa: realtek: rtl8365mb: store the egress queue count per chip
      net: dsa: realtek: rtl8365mb: add QoS baseline and DCB default prio
      net: dsa: realtek: rtl8365mb: program the PCP of untagged frames
      net: dsa: realtek: rtl8365mb: offload DCB apptrust
      net: dsa: realtek: rtl8365mb: report the DCB DSCP-to-priority map

 drivers/net/dsa/realtek/Kconfig          |   1 +
 drivers/net/dsa/realtek/Makefile         |   5 +-
 drivers/net/dsa/realtek/realtek.h        |  32 ++
 drivers/net/dsa/realtek/rtl8365mb_main.c |  70 ++++-
 drivers/net/dsa/realtek/rtl8365mb_qos.c  | 507 +++++++++++++++++++++++++++++++
 drivers/net/dsa/realtek/rtl8365mb_qos.h  |  33 ++
 drivers/net/dsa/realtek/rtl83xx-qos.c    | 209 +++++++++++++
 drivers/net/dsa/realtek/rtl83xx-qos.h    |  20 ++
 include/net/ieee8021q.h                  |  21 +-
 net/core/ieee8021q_helpers.c             | 103 ++++++-
 10 files changed, 979 insertions(+), 22 deletions(-)
---
base-commit: fa5196392691051963726787944db872420dfa75
change-id: 20261109-rtl8365mb-dcb-ingress-0dae31a02c0f

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


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

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

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-12  8:37 [PATCH net-next v2 00/10] net: dsa: realtek: rtl8365mb: DCB ingress QoS offload Oleksij Rempel
2026-11-12  8:37 ` [PATCH net-next v2 01/10] net: ieee8021q: print traffic type and queue count with %u Oleksij Rempel
2026-11-12  8:37 ` [PATCH net-next v2 02/10] net: ieee8021q: add pcp_to_tt() Oleksij Rempel
2026-11-12  8:37 ` [PATCH net-next v2 03/10] net: ieee8021q: clarify the tt_to_tc() traffic-class mapping Oleksij Rempel
2026-11-12  8:37 ` [PATCH net-next v2 04/10] net: ieee8021q: add tt_to_pcp() Oleksij Rempel
2026-11-12  8:37 ` [PATCH net-next v2 05/10] net: dsa: realtek: rtl8365mb: describe the ports of each chip Oleksij Rempel
2026-11-12 15:08   ` Alvin Šipraga
2026-11-12  8:37 ` [PATCH net-next v2 06/10] net: dsa: realtek: rtl8365mb: store the egress queue count per chip Oleksij Rempel
2026-11-12  8:37 ` [PATCH net-next v2 07/10] net: dsa: realtek: rtl8365mb: add QoS baseline and DCB default prio Oleksij Rempel
2026-11-12  8:37 ` [PATCH net-next v2 08/10] net: dsa: realtek: rtl8365mb: program the PCP of untagged frames Oleksij Rempel
2026-11-12  8:37 ` [PATCH net-next v2 09/10] net: dsa: realtek: rtl8365mb: offload DCB apptrust Oleksij Rempel
2026-11-12  8:37 ` [PATCH net-next v2 10/10] net: dsa: realtek: rtl8365mb: report the DCB DSCP-to-priority map Oleksij Rempel

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