projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c161d0a
)
net: dsa: mv88e6xxx: flush all addresses when adding a VLAN
author
Vivien Didelot
<vivien.didelot@savoirfairelinux.com>
Fri, 4 Sep 2015 18:34:14 +0000
(14:34 -0400)
committer
David S. Miller
<davem@davemloft.net>
Tue, 15 Sep 2015 19:04:21 +0000
(12:04 -0700)
When choosing an address database for a new VLAN, flush every entries,
not only the non-static ones.
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx.c
patch
|
blob
|
history
diff --git
a/drivers/net/dsa/mv88e6xxx.c
b/drivers/net/dsa/mv88e6xxx.c
index
38c8d4a
..
88d669c
100644
(file)
--- a/
drivers/net/dsa/mv88e6xxx.c
+++ b/
drivers/net/dsa/mv88e6xxx.c
@@
-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;