mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-08 21:53:54 +08:00
net: dsa: mv88e6xxx: flush ATU on initial setup
Purge all MAC addresses from the entire set of address databases when the driver initializes the device. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7fb5e75515
commit
c161d0a5ed
@ -2685,6 +2685,11 @@ int mv88e6xxx_setup_global(struct dsa_switch *ds)
|
|||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
goto unlock;
|
goto unlock;
|
||||||
|
|
||||||
|
/* Clear all ATU entries */
|
||||||
|
ret = _mv88e6xxx_atu_flush(ds, 0, true);
|
||||||
|
if (ret < 0)
|
||||||
|
goto unlock;
|
||||||
|
|
||||||
/* Clear all the VTU and STU entries */
|
/* Clear all the VTU and STU entries */
|
||||||
ret = _mv88e6xxx_vtu_stu_flush(ds);
|
ret = _mv88e6xxx_vtu_stu_flush(ds);
|
||||||
unlock:
|
unlock:
|
||||||
|
Loading…
Reference in New Issue
Block a user