diff --git a/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/dsa.c b/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/dsa.c index 5a896c082a5..9939082401c 100644 --- a/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/dsa.c +++ b/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/dsa.c @@ -80,24 +80,15 @@ static void rtldsa_83xx_mc_pmasks_setup(struct rtl838x_switch_priv *priv) /* Initialize all VLANS */ static void rtldsa_vlan_setup(struct rtl838x_switch_priv *priv) { - struct rtl838x_vlan_info info; + struct rtl838x_vlan_info info = { + .l2_tunnel_list_id = -1, + }; pr_info("In %s\n", __func__); priv->r->vlan_profile_setup(0); priv->r->vlan_profile_dump(priv, 0); - info.fid = 0; /* Default Forwarding ID / MSTI */ - info.hash_uc_fid = false; /* Do not build the L2 lookup hash with FID, but VID */ - info.hash_mc_fid = false; /* Do the same for Multicast packets */ - info.profile_id = 0; /* Use default Vlan Profile 0 */ - info.member_ports = 0; /* Initially no port members */ - if (priv->family_id == RTL9310_FAMILY_ID) { - info.if_id = 0; - info.multicast_grp_mask = 0; - info.l2_tunnel_list_id = -1; - } - /* Initialize normal VLANs 1-4095 */ for (int i = 1; i < MAX_VLANS; i++) priv->r->vlan_set_tagged(i, &info);