net: dsa: b53: fix flushing old pvid VLAN on pvid change
[ Upstream commit 083c6b28c0cbcd83b6af1a10f2c82937129b3438 ]
Presumably the intention here was to flush the VLAN of the old pvid, not
the added VLAN again, which we already flushed before.
Fixes: a2482d2ce3
("net: dsa: b53: Plug in VLAN support")
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Tested-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://patch.msgid.link/20250429201710.330937-5-jonas.gorski@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
aa00a30a28
commit
a143c39add
@@ -1555,7 +1555,7 @@ int b53_vlan_add(struct dsa_switch *ds, int port,
|
||||
if (!dsa_is_cpu_port(ds, port) && new_pvid != old_pvid) {
|
||||
b53_write16(dev, B53_VLAN_PAGE, B53_VLAN_PORT_DEF_TAG(port),
|
||||
new_pvid);
|
||||
b53_fast_age_vlan(dev, vlan->vid);
|
||||
b53_fast_age_vlan(dev, old_pvid);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user