Skip to content

net: dsa: b53: add support for BCM5389/97/98 and BCM63XX ARL formats

Jonas Gorski lkml netdev 1 version Applied

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 9 repliesApplied 8/8

Patches in v1 All 8 applied

#Subject and filesSizeRepliesApplied
1/8net: dsa: b53: b53_arl_read{,25}(): use the entry for comparisiondrivers/net/dsa/b53/b53_common.c+10 -121 replyApplied
2/8net: dsa: b53: move reading ARL entries into their own functiondrivers/net/dsa/b53/b53_common.c+23 -461 replyApplied
3/8net: dsa: b53: move writing ARL entries into their own functionsdrivers/net/dsa/b53/b53_common.c+26 -121 replyApplied
4/8net: dsa: b53: provide accessors for accessing ARL_SRCH_CTLdrivers/net/dsa/b53/b53_common.c+24 -131 replyApplied
5/8net: dsa: b53: split reading search entry into their own functionsdrivers/net/dsa/b53/b53_common.c+38 -181 replyApplied
6/8net: dsa: b53: move ARL entry functions into ops structdrivers/net/dsa/b53/b53_common.c drivers/net/dsa/b53/b53_priv.h+76 -211 replyApplied
7/8net: dsa: b53: add support for 5389/5397/5398 ARL entry formatdrivers/net/dsa/b53/b53_common.c drivers/net/dsa/b53/b53_priv.h drivers/net/dsa/b53/b53_regs.h+89 -31 replyApplied
8/8net: dsa: b53: add support for bcm63xx ARL entry formatdrivers/net/dsa/b53/b53_common.c drivers/net/dsa/b53/b53_priv.h drivers/net/dsa/b53/b53_regs.h+61 -71 replyApplied

Reviews trailers per patch

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

PatchFlorian Fainelli
1/8R-b
2/8R-b
3/8R-b
4/8R-b
5/8R-b
6/8R-b
7/8R-b
8/8R-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-next 0/8] net: dsa: b53: add support for BCM5389/97/98 and BCM63XX ARL formats

Currently b53 assumes that all switches apart from BCM5325/5365 use the same ARL formats, but there are actually multiple formats in use.

Older switches use a format apparently introduced with BCM5387/BCM5389, while newer chips use a format apparently introduced with BCM5395.

Note that these numbers are not linear, BCM5397/BCM5398 use the older format.

In addition to that the switches integrated into BCM63XX SoCs use their own format. While accessing these normal read/write ARL entries are the same format as BCM5389 one, the search format is different.

So in order to support all these different format, split all code accessing these entries into chip-family specific functions, and collect them in appropriate arl ops structs to keep the code cleaner.

Sent as net-next since the ARL accesses have never worked before, and the extensive refactoring might be too much to warrant a fix.

Jonas Gorski (8):
net: dsa: b53: b53_arl_read{,25}(): use the entry for comparision
net: dsa: b53: move reading ARL entries into their own function
net: dsa: b53: move writing ARL entries into their own functions
net: dsa: b53: provide accessors for accessing ARL_SRCH_CTL
net: dsa: b53: split reading search entry into their own functions
net: dsa: b53: move ARL entry functions into ops struct
net: dsa: b53: add support for 5389/5397/5398 ARL entry format
net: dsa: b53: add support for bcm63xx ARL entry format

 drivers/net/dsa/b53/b53_common.c | 316 +++++++++++++++++++++----------
 drivers/net/dsa/b53/b53_priv.h   |  71 +++++++
 drivers/net/dsa/b53/b53_regs.h   |  22 +++
 3 files changed, 312 insertions(+), 97 deletions(-)

base-commit: 6fc33710cd6c55397e606eeb544bdf56ee87aae5

Signature · 1 line
2.43.0