realtek: dsa: Fix prefix for trapping functions
authorHarshal Gohel <[email protected]>
Fri, 8 Aug 2025 15:31:03 +0000 (17:31 +0200)
committerHauke Mehrtens <[email protected]>
Tue, 26 Aug 2025 21:44:08 +0000 (23:44 +0200)
The functions to enable trapping of management frames are not RTL83xx
specific. It is more appropriate to use the more generic "rtldsa" prefix
for them.

Signed-off-by: Harshal Gohel <[email protected]>
Signed-off-by: Sharadanand Karanjkar <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/19571
Signed-off-by: Hauke Mehrtens <[email protected]>
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/dsa.c

index fbb1a4ba2f7663bf8db9e93a6a94ddf1161ed820..4dbf3d29ffac9f5d61b3f65fb4f38844fdf8b4dc 100644 (file)
@@ -397,13 +397,13 @@ static void rtl83xx_vlan_setup(struct rtl838x_switch_priv *priv)
                priv->r->vlan_fwd_on_inner(i, true);
 }
 
-static void rtl83xx_setup_bpdu_traps(struct rtl838x_switch_priv *priv)
+static void rtldsa_setup_bpdu_traps(struct rtl838x_switch_priv *priv)
 {
        for (int i = 0; i < priv->cpu_port; i++)
                priv->r->set_receive_management_action(i, BPDU, TRAP2CPU);
 }
 
-static void rtl83xx_setup_lldp_traps(struct rtl838x_switch_priv *priv)
+static void rtldsa_setup_lldp_traps(struct rtl838x_switch_priv *priv)
 {
        for (int i = 0; i < priv->cpu_port; i++)
                priv->r->set_receive_management_action(i, LLDP, TRAP2CPU);
@@ -461,8 +461,8 @@ static int rtl83xx_setup(struct dsa_switch *ds)
 
        rtl83xx_vlan_setup(priv);
 
-       rtl83xx_setup_bpdu_traps(priv);
-       rtl83xx_setup_lldp_traps(priv);
+       rtldsa_setup_bpdu_traps(priv);
+       rtldsa_setup_lldp_traps(priv);
 
        ds->configure_vlan_while_not_filtering = true;