netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/4] net: dsa: add port fast ageing
@ 2016-09-22 20:49 Vivien Didelot
  2016-09-22 20:49 ` [PATCH net-next 1/4] net: dsa: add port STP state helper Vivien Didelot
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Vivien Didelot @ 2016-09-22 20:49 UTC (permalink / raw)
  To: netdev
  Cc: linux-kernel, kernel, David S. Miller, Florian Fainelli,
	Andrew Lunn, John Crispin, Vivien Didelot

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 this generic switch logic.

This patchset introduces a new optional port_fast_age operation to
dsa_switch_ops, to move this logic to the DSA layer and keep drivers
simple. b53 and mv88e6xxx are updated accordingly.

Vivien Didelot (4):
  net: dsa: add port STP state helper
  net: dsa: add port fast ageing
  net: dsa: b53: implement DSA port fast ageing
  net: dsa: mv88e6xxx: implement DSA port fast ageing

 drivers/net/dsa/b53/b53_common.c | 31 ++++++++++-----------------
 drivers/net/dsa/mv88e6xxx/chip.c | 45 ++++++++++++++++++++--------------------
 include/net/dsa.h                |  2 ++
 net/dsa/slave.c                  | 35 ++++++++++++++++++++++++-------
 4 files changed, 64 insertions(+), 49 deletions(-)

-- 
2.10.0

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-09-23 12:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-22 20:49 [PATCH net-next 0/4] net: dsa: add port fast ageing Vivien Didelot
2016-09-22 20:49 ` [PATCH net-next 1/4] net: dsa: add port STP state helper Vivien Didelot
2016-09-22 20:49 ` [PATCH net-next 2/4] net: dsa: add port fast ageing Vivien Didelot
2016-09-22 20:49 ` [PATCH net-next 3/4] net: dsa: b53: implement DSA " Vivien Didelot
2016-09-22 20:49 ` [PATCH net-next 4/4] net: dsa: mv88e6xxx: " Vivien Didelot
2016-09-22 23:43 ` [PATCH net-next 0/4] net: dsa: add " Andrew Lunn
2016-09-23  5:36 ` Florian Fainelli
2016-09-23 12:01 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).