Skip to content

net: dsa: Learning fixes for b53/bcm_sf2

Florian Fainelli lkml netdev 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 5 repliesApplied

Changes in v2 from the cover letter

- added first patch
- updated second patch to include BR_LEARNING check in br_flags_pre as a support bridge flag to offload

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2net: dsa: bcm_sf2: Wire-up br_flags_pre, br_flags and set_mrouterdrivers/net/dsa/b53/b53_common.c drivers/net/dsa/b53/b53_priv.h drivers/net/dsa/bcm_sf2.c+22 -81 reply
2/2net: dsa: b53: Support setting learning on portdrivers/net/dsa/b53/b53_common.c drivers/net/dsa/b53/b53_regs.h drivers/net/dsa/bcm_sf2.c+21 -153 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchVladimir Oltean
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH net v2 0/2] net: dsa: Learning fixes for b53/bcm_sf2

Hi David, Jakub,

This patch series contains a couple of fixes for the b53/bcm_sf2 drivers with respect to configuring learning.

The first patch is wiring-up the necessary dsa_switch_ops operations in order to support the offloading of bridge flags.

The second patch corrects the switch driver's default learning behavior which was unfortunately wrong from day one.

This is submitted against "net" because this is technically a bug fix since ports should not have had learning enabled by default but given this is dependent upon Vladimir's recent br_flags series, there is no Fixes tag provided.

I will be providing targeted stable backports that look a bit difference.

Changes in v2:

- added first patch
- updated second patch to include BR_LEARNING check in br_flags_pre as a support bridge flag to offload

Florian Fainelli (2):
net: dsa: bcm_sf2: Wire-up br_flags_pre, br_flags and set_mrouter
net: dsa: b53: Support setting learning on port

 drivers/net/dsa/b53/b53_common.c | 39 ++++++++++++++++++++++++--------
 drivers/net/dsa/b53/b53_priv.h   |  8 +++++++
 drivers/net/dsa/b53/b53_regs.h   |  1 +
 drivers/net/dsa/bcm_sf2.c        | 18 ++++-----------
 4 files changed, 43 insertions(+), 23 deletions(-)
Signature · 1 line
2.25.1