Skip to content

Commit 083c6b2

Browse files
KanjiMonsterkuba-moo
authored andcommitted
net: dsa: b53: fix flushing old pvid VLAN on pvid change
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]>
1 parent f480851 commit 083c6b2

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)