realtek: dsa: rtl93xx: Configure default QoS prioritization
authorIssam Hamdi <[email protected]>
Tue, 15 Jul 2025 18:10:34 +0000 (20:10 +0200)
committerRobert Marko <[email protected]>
Sat, 15 Nov 2025 10:19:46 +0000 (11:19 +0100)
commit22178914c6a3b7a8ccdd300dea5af224487aed3e
treea5acc241cb684574e73ed13d7b2fb72b9ca73115
parentd78a2a6597e23ba897aba63006f1412e1bf485ca
realtek: dsa: rtl93xx: Configure default QoS prioritization

RTL838x+RTL839x both configure a default QoS behavior with a default
mapping. This also needs to be added to RTL93xx to ensure a consistent
behavior:

* Set the default mapping between DSCP and priority: prio = dscp >> 3.
* Set the default mapping between internal priority and queues
* Set uniform prioritization of queues (as with other SoCs)

Signed-off-by: Issam Hamdi <[email protected]>
Co-developed-by: Sven Eckelmann <[email protected]>
Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20640
Signed-off-by: Robert Marko <[email protected]>
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/qos.c
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl838x.h
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl930x.c
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl931x.c