Skip to content

Commit e9bb5b4

Browse files
KanjiMonstersmb49
authored andcommitted
net: dsa: b53: fix flushing old pvid VLAN on pvid change
BugLink: https://bugs.launchpad.net/bugs/2115252 [ Upstream commit 083c6b2 ] Presumably the intention here was to flush the VLAN of the old pvid, not the added VLAN again, which we already flushed before. Fixes: a2482d2 ("net: dsa: b53: Plug in VLAN support") Signed-off-by: Jonas Gorski <[email protected]> Tested-by: Florian Fainelli <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]> Signed-off-by: Sasha Levin <[email protected]> Signed-off-by: Manuel Diewald <[email protected]> Signed-off-by: Stefan Bader <[email protected]>
1 parent 12ecf35 commit e9bb5b4

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
@@ -1574,7 +1574,7 @@ int b53_vlan_add(struct dsa_switch *ds, int port,
15741574
if (!dsa_is_cpu_port(ds, port) && new_pvid != old_pvid) {
15751575
b53_write16(dev, B53_VLAN_PAGE, B53_VLAN_PORT_DEF_TAG(port),
15761576
new_pvid);
1577-
b53_fast_age_vlan(dev, vlan->vid);
1577+
b53_fast_age_vlan(dev, old_pvid);
15781578
}
15791579

15801580
return 0;

0 commit comments

Comments
 (0)