net: dsa: add port fast ageing
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Thu, 22 Sep 2016 20:49:22 +0000 (16:49 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Sep 2016 12:38:50 +0000 (08:38 -0400)
commit732f794c1baf58e1eb2be4431635829c3da655bd
treea888762ed8e73ce15609c1dab5c43ce117c76aa8
parent4acfee8143b33efa8bda6f03fe1462d545ff8170
net: dsa: add port fast ageing

Today the DSA drivers are in charge of flushing the MAC addresses
associated to a port when its STP state changes from Learning or
Forwarding, to Disabled or Blocking or Listening.

This makes the drivers more complex and hides the generic switch logic.
Introduce a new optional port_fast_age operation to dsa_switch_ops, to
move this logic to the DSA layer and keep drivers simple.

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