net: dsa: mv88e6xxx: remove all MACs when disabling a port
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Fri, 4 Sep 2015 18:34:16 +0000 (14:34 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Sep 2015 19:04:22 +0000 (12:04 -0700)
commit2b8157b1c20bdac0e0b856b2cb1499c7f18f2b07
tree6d31707f9ddea7e887563552ded90029210b5710
parent9f4d55d2869d86bd5dc59ff28109f7fefedc325d
net: dsa: mv88e6xxx: remove all MACs when disabling a port

When we're moving a port from Learning or Forwarding state to Disabled
or Blocking or Listening state, remove all non-static MAC addresses
mapped to this port in the entire set of databases, not only one.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx.c