Skip to content

Commit 10163aa

Browse files
ffainellidavem330
authored andcommitted
net: dsa: b53: Do not program CPU port's PVID
The CPU port is special and does not need to obey VLAN restrictions as far as untagged traffic goes, also, having the CPU port be part of a particular PVID is against the idea of keeping it tagged in all VLANs. Fixes: ca89319 ("net: dsa: b53: Keep CPU port as tagged in all VLANs") Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent c3152ec commit 10163aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/dsa/b53/b53_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1359,7 +1359,7 @@ void b53_vlan_add(struct dsa_switch *ds, int port,
13591359
b53_fast_age_vlan(dev, vid);
13601360
}
13611361

1362-
if (pvid) {
1362+
if (pvid && !dsa_is_cpu_port(ds, port)) {
13631363
b53_write16(dev, B53_VLAN_PAGE, B53_VLAN_PORT_DEF_TAG(port),
13641364
vlan->vid_end);
13651365
b53_fast_age_vlan(dev, vid);

0 commit comments

Comments
 (0)