]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: remove currently unused VLAN profile_id 1 21872/head
authorLinus Lüssing <linus.luessing@c0d3.blue>
Wed, 28 Jan 2026 00:52:15 +0000 (01:52 +0100)
committerRobert Marko <robimarko@gmail.com>
Sat, 28 Feb 2026 11:11:31 +0000 (12:11 +0100)
So far we are only associating and using a VLAN profile ID of 0 to any
VLAN ID, VLAN profile ID 1 is unused. Therefore we can safely remove its
initialization, just like we don't initialize any of VLAN profile IDs
2 to 7 on rtl83xx/rtl930x or 2 to 15 on rtl931x.

Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
Link: https://github.com/openwrt/openwrt/pull/21872
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/dsa.c

index fd2710f0391a4c0b211202b0c2a331b4221255a3..e04ee062eec349e3c8537bb024ffeefaea55f4db 100644 (file)
@@ -463,7 +463,6 @@ static void rtldsa_vlan_setup(struct rtl838x_switch_priv *priv)
        pr_info("In %s\n", __func__);
 
        priv->r->vlan_profile_setup(0);
-       priv->r->vlan_profile_setup(1);
        priv->r->vlan_profile_dump(priv, 0);
 
        info.fid = 0;                   /* Default Forwarding ID / MSTI */