We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92790e6 commit 8f5c71eCopy full SHA for 8f5c71e
drivers/net/dsa/lantiq/lantiq_gswip.c
@@ -848,8 +848,6 @@ static int gswip_vlan_add_aware(struct gswip_priv *priv,
848
849
vlan_mapping.index = idx;
850
vlan_mapping.table = GSWIP_TABLE_VLAN_MAPPING;
851
- /* VLAN ID byte, maps to the VLAN ID of vlan active table */
852
- vlan_mapping.val[0] = vid;
853
} else {
854
/* Read the existing VLAN mapping entry from the switch */
855
@@ -862,6 +860,7 @@ static int gswip_vlan_add_aware(struct gswip_priv *priv,
862
860
}
863
861
864
+ /* VLAN ID byte, maps to the VLAN ID of vlan active table */
865
vlan_mapping.val[0] = vid;
866
/* Update the VLAN mapping entry and write it to the switch */
867
vlan_mapping.val[1] |= cpu_ports;
0 commit comments