mbox series

[net-next,0/5] Fast ageing support for SJA1105 DSA driver

Message ID 20210808143527.4041242-1-vladimir.oltean@nxp.com
Headers show
Series Fast ageing support for SJA1105 DSA driver | expand

Message

Vladimir Oltean Aug. 8, 2021, 2:35 p.m. UTC
While adding support for flushing dynamically learned FDB entries in the
sja1105 driver, I noticed a few things that could be improved in DSA.
Most notably, drivers could omit a fast age when address learning is
turned off, which might mean that ports leaving a bridge and becoming
standalone could still have FDB entries pointing towards them. Secondly,
when DSA fast ages a port after the 'learning' flag has been turned off,
the software bridge still has the dynamically learned 'master' FDB
entries installed, and those should be deleted too.

Cc: DENG Qingfang <dqfext@gmail.com>
Cc: Tobias Waldekranz <tobias@waldekranz.com>
Cc: Alexandra Winter <wintera@linux.ibm.com>
Cc: Julian Wiedmann <jwi@linux.ibm.com>
Cc: Roopa Prabhu <roopa@nvidia.com>
Cc: Nikolay Aleksandrov <nikolay@nvidia.com>

Vladimir Oltean (5):
  net: dsa: centralize fast ageing when address learning is turned off
  net: dsa: don't fast age bridge ports with learning turned off
  net: dsa: flush the dynamic FDB of the software bridge when fast
    ageing a port
  net: dsa: sja1105: rely on DSA core tracking of port learning state
  net: dsa: sja1105: add FDB fast ageing support

 drivers/net/dsa/mv88e6xxx/chip.c       |  7 ---
 drivers/net/dsa/sja1105/sja1105.h      |  1 -
 drivers/net/dsa/sja1105/sja1105_main.c | 73 +++++++++++++++++++-------
 include/net/dsa.h                      |  2 +
 net/dsa/dsa_priv.h                     |  2 +-
 net/dsa/port.c                         | 55 +++++++++++++++++--
 6 files changed, 108 insertions(+), 32 deletions(-)