net: dsa: b53: fix ARL accesses for BCM5325/65 and allow VID 0
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 · linked by author and title
- v2 Latest7 patches 3 repliesApplied 7/7
- v17 patches 9 repliesSuperseded
Changes in v2 from the cover letter
* added Review tags from Florian
* added Tested tags from Álvaro as far as the patches went unmodified
* !is_multicast => is_unicast
* only change b53_default_pvid() to always return 0
* stop rejecting vlan 0 for bcm5325()
Patches in v2 All 7 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | net: dsa: b53: fix VLAN_ID_IDX write size for BCM5325/65drivers/ | +6 | 0 replies | Applied |
| 2/7 | net: dsa: b53: fix extracting VID from entry for BCM5325/65drivers/ | +1 | 0 replies | Applied |
| 3/7 | net: dsa: b53: use same ARL search result offset for BCM5325/65drivers/ drivers/ | +2 | 0 replies | Applied |
| 4/7 | net: dsa: b53: fix CPU port unicast ARL entries for BCM5325/65drivers/ | +9 | 1 reply | Applied |
| 5/7 | net: dsa: b53: fix BCM5325/65 ARL entry multicast port masksdrivers/ drivers/ drivers/ | +31 | 0 replies | Applied |
| 6/7 | net: dsa: b53: fix BCM5325/65 ARL entry VIDsdrivers/ drivers/ drivers/ | +18 | 1 reply | Applied |
| 7/7 | net: dsa: b53: allow VID 0 for BCM5325/65drivers/ | +1 | 1 reply | Applied |
Reviews trailers per patch
All 7 patches have a Reviewed-by or Acked-by.
| Patch | Florian Fainelli | Álvaro Fernández Rojas |
|---|---|---|
| 1/7 | R-b | T-b |
| 2/7 | R-b | T-b |
| 3/7 | R-b | T-b |
| 4/7 | R-b | |
| 5/7 | R-b | |
| 6/7 | R-b | |
| 7/7 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net-next v2 0/7] net: dsa: b53: fix ARL accesses for BCM5325/65 and allow VID 0
ARL entries on BCM5325 and BCM5365 were broken significantly in two ways:
- Entries for the CPU port were using the wrong port id, pointing to a non existing port.
- Setting the VLAN ID for entries was not done, adding them all to VLAN 0 instead.
While the former technically broke any communication to the CPU port, with the latter they were added to the currently unused VID 0, so they never became effective. Presumably the default PVID was set to 1 because of these issues 0 was broken (and the root cause not found).
So fix writing and reading entries on BCM5325/65 by first fixing the CPU port entries, then fixing setting the VLAN ID for entries.
Finally, re-allow VID 0 for BCM5325/65 to allow the whole 1-15 VLAN ID range to be available to users, and align VLAN handling with all other switch chips.
Sent to net-next as it would cause an ugly, non trivial merge conflict with net-next when added to net, and I don't want to subject the maintainers to that. I will take care of sending adapted versions to stable once it hit linus' tree.
Changelog
v1 -> v2:
* added Review tags from Florian
* added Tested tags from Álvaro as far as the patches went unmodified
* !is_multicast => is_unicast
* only change b53_default_pvid() to always return 0
* stop rejecting vlan 0 for bcm5325()
Jonas Gorski (7):
net: dsa: b53: fix VLAN_ID_IDX write size for BCM5325/65
net: dsa: b53: fix extracting VID from entry for BCM5325/65
net: dsa: b53: use same ARL search result offset for BCM5325/65
net: dsa: b53: fix CPU port unicast ARL entries for BCM5325/65
net: dsa: b53: fix BCM5325/65 ARL entry multicast port masks
net: dsa: b53: fix BCM5325/65 ARL entry VIDs
net: dsa: b53: allow VID 0 for BCM5325/65
drivers/net/dsa/b53/b53_common.c | 47 ++++++++++++-------------------- drivers/net/dsa/b53/b53_priv.h | 40 +++++++++++++++++++++------ drivers/net/dsa/b53/b53_regs.h | 19 +++++++++---- 3 files changed, 62 insertions(+), 44 deletions(-)
base-commit: ed01d2069e8b40eb283050b7119c25a67542a585
Signature · 1 line
2.43.0