Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7c400018 authored by Vivien Didelot's avatar Vivien Didelot Committed by David S. Miller
Browse files

net: dsa: mv88e6xxx: flush all addresses when adding a VLAN



When choosing an address database for a new VLAN, flush every entries,
not only the non-static ones.

Signed-off-by: default avatarVivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c161d0a5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1630,7 +1630,8 @@ static int _mv88e6xxx_vlan_init(struct dsa_switch *ds, u16 vid,
			return -ENOSPC;
		}

		err = _mv88e6xxx_flush_fid(ds, vlan.fid);
		/* Clear all MAC addresses from the new database */
		err = _mv88e6xxx_atu_flush(ds, vlan.fid, true);
		if (err)
			return err;