Skip to content

Commit 1f89ed0

Browse files
vladimirolteankuba-moo
authored andcommitted
net: dsa: lantiq_gswip: treat VID 0 like the PVID
Documentation/networking/switchdev.rst says that VLAN-aware bridges must treat packets tagged with VID 0 the same as untagged. It appears from the documentation that setting the GSWIP_PCE_VCTRL_VID0 flag (which this driver already had defined) might achieve this. Signed-off-by: Vladimir Oltean <[email protected]> Signed-off-by: Daniel Golle <[email protected]> Link: https://patch.msgid.link/b220ac149922839a261b754202c05df5bb253c98.1760566491.git.daniel@makrotopia.org Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 3bb500c commit 1f89ed0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/dsa/lantiq/lantiq_gswip.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -603,15 +603,15 @@ static int gswip_port_vlan_filtering(struct dsa_switch *ds, int port,
603603
gswip_switch_mask(priv,
604604
GSWIP_PCE_VCTRL_VSR,
605605
GSWIP_PCE_VCTRL_UVR | GSWIP_PCE_VCTRL_VIMR |
606-
GSWIP_PCE_VCTRL_VEMR,
606+
GSWIP_PCE_VCTRL_VEMR | GSWIP_PCE_VCTRL_VID0,
607607
GSWIP_PCE_VCTRL(port));
608608
gswip_switch_mask(priv, GSWIP_PCE_PCTRL_0_TVM, 0,
609609
GSWIP_PCE_PCTRL_0p(port));
610610
} else {
611611
/* Use port based VLAN */
612612
gswip_switch_mask(priv,
613613
GSWIP_PCE_VCTRL_UVR | GSWIP_PCE_VCTRL_VIMR |
614-
GSWIP_PCE_VCTRL_VEMR,
614+
GSWIP_PCE_VCTRL_VEMR | GSWIP_PCE_VCTRL_VID0,
615615
GSWIP_PCE_VCTRL_VSR,
616616
GSWIP_PCE_VCTRL(port));
617617
gswip_switch_mask(priv, 0, GSWIP_PCE_PCTRL_0_TVM,

0 commit comments

Comments
 (0)