summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Eckelmann2025-11-04 11:14:58 +0000
committerÁlvaro Fernández Rojas2025-11-06 09:31:55 +0000
commit78bf3a5f44bf8219a8e0e4c982ccb7624d967f83 (patch)
tree74ce94b262be4e33f244d6751d61e5ef5f0d0ae5
parent2703bdda0252cdf6a39635347eb8c22985b2a320 (diff)
downloadopenwrt-78bf3a5f44bf8219a8e0e4c982ccb7624d967f83.tar.gz
realtek: dsa: Fix rate control initialization
The rtl838x_rate_control_init() and rtl839x_rate_control_init() functions were never called because the rtl83xx_setup_qos() always returned after the QoS configuration Fixes: dc9cc0d3e2a1 ("realtek: add QoS and rate control") Signed-off-by: Sven Eckelmann <se@simonwunderlich.de> Link: https://github.com/openwrt/openwrt/pull/20637 Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
-rw-r--r--target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/qos.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/qos.c b/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/qos.c
index 82cfbc966a..55145b5fcf 100644
--- a/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/qos.c
+++ b/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/qos.c
@@ -554,9 +554,9 @@ void __init rtl83xx_setup_qos(struct rtl838x_switch_priv *priv)
pr_info("In %s\n", __func__);
if (priv->family_id == RTL8380_FAMILY_ID)
- return rtl838x_config_qos();
+ rtl838x_config_qos();
else if (priv->family_id == RTL8390_FAMILY_ID)
- return rtl839x_config_qos();
+ rtl839x_config_qos();
if (priv->family_id == RTL8380_FAMILY_ID)
rtl838x_rate_control_init(priv);