]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit865a2629426dc9603142851e88c35cd11c1c56f9
treea888762ed8e73ce15609c1dab5c43ce117c76aa8
parent2ef2e08929c21bf4c3e2c384af141639854143f5
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