Skip to content

net: dsa: b53: minor fdb related fixes

Jonas Gorski lkml netdev 1 version Applied

Status from this message: This series was applied to netdev/net.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesApplied 3/3

Patches in v1 All 3 applied

#Subject and filesSizeRepliesApplied
1/3net: dsa: b53: fix enabling ip multicastdrivers/net/dsa/b53/b53_common.c drivers/net/dsa/b53/b53_regs.h+3 -41 replyApplied
2/3net: dsa: b53: stop reading ARL entries if search is donedrivers/net/dsa/b53/b53_common.c+1 -11 replyApplied
3/3net: dsa: b53: properly bound ARL searches for < 4 ARL bin chipsdrivers/net/dsa/b53/b53_common.c+6 -31 replyApplied

Reviews trailers per patch

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

PatchFlorian Fainelli
1/3R-b
2/3R-b
3/3R-b

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

Read the v1 thread

Cover letter [PATCH net 0/3] net: dsa: b53: minor fdb related fixes

While investigating and fixing/implenting proper ARL support for bcm63xx, I encountered multiple minor issues in the current ARL implementation:

* The ARL multicast support was not properly enabled for older chips, and instead a potentially reserved bit was toggled.
* While traversing the ARL table, "Search done" triggered one final entry which will be invalid for 4 ARL bin chips, and failed to stop the search on chips with only one result register.
* For chips where we have only one result register, we only traversed at most half the maximum entries.

I also had a fix for IVL_SVL_SELECT which is only valid for some chips, but since this would only have an effect for !vlan_enabled, and we always have that enabled, it isn't really worth fixing (and rather drop the !vlan_enabled paths).

Jonas Gorski (3):
net: dsa: b53: fix enabling ip multicast
net: dsa: b53: stop reading ARL entries if search is done
net: dsa: b53: properly bound ARL searches for < 4 ARL bin chips

 drivers/net/dsa/b53/b53_common.c | 15 +++++++++------
 drivers/net/dsa/b53/b53_regs.h   |  3 +--
 2 files changed, 10 insertions(+), 8 deletions(-)

base-commit: d7d2fcf7ae31471b4e08b7e448b8fd0ec2e06a1b

Signature · 1 line
2.43.0