Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1489771

Re: [PATCH net-next 0/4] net: dsa: add port fast ageing

From Florian Fainelli <f.fainelli@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH net-next 0/4] net: dsa: add port fast ageing
Date 2016-09-23 07:40 +0200
Message-ID <skrnj-81v-1@gated-at.bofh.it> (permalink)
References <skjg6-2JH-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw



On 09/22/2016 01:49 PM, Vivien Didelot wrote:
> 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.

This looks good, just one minor thing, both the b53 and mv88e6xxx can
actually return an error from fast ageing a port, should we account for
that? Not that we would be doing something about it though...

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>

> 
> 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(-)
> 

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH net-next 0/4] net: dsa: add port fast ageing Vivien Didelot <vivien.didelot@savoirfairelinux.com> - 2016-09-22 23:00 +0200
  [PATCH net-next 4/4] net: dsa: mv88e6xxx: implement DSA port fast ageing Vivien Didelot <vivien.didelot@savoirfairelinux.com> - 2016-09-22 23:00 +0200
  [PATCH net-next 2/4] net: dsa: add port fast ageing Vivien Didelot <vivien.didelot@savoirfairelinux.com> - 2016-09-22 23:00 +0200
  Re: [PATCH net-next 0/4] net: dsa: add port fast ageing Andrew Lunn <andrew@lunn.ch> - 2016-09-23 01:50 +0200
  Re: [PATCH net-next 0/4] net: dsa: add port fast ageing Florian Fainelli <f.fainelli@gmail.com> - 2016-09-23 07:40 +0200
  Re: [PATCH net-next 0/4] net: dsa: add port fast ageing David Miller <davem@davemloft.net> - 2016-09-23 14:10 +0200

csiph-web