Skip to content

net: dsa: b53: accumulated 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 Latest11 patches 12 repliesApplied 11/11

Patches in v1 All 11 applied

#Subject and filesSizeRepliesApplied
1/11net: dsa: b53: allow leaky reserved multicastdrivers/net/dsa/b53/b53_common.c+4 -20 repliesApplied
2/11net: dsa: b53: keep CPU port always tagged againdrivers/net/dsa/b53/b53_common.c+8 -00 repliesApplied
3/11net: dsa: b53: fix clearing PVID of a portdrivers/net/dsa/b53/b53_common.c+11 -20 repliesApplied
4/11net: dsa: b53: fix flushing old pvid VLAN on pvid changedrivers/net/dsa/b53/b53_common.c+1 -12 repliesApplied
5/11net: dsa: b53: fix VLAN ID for untagged vlan on bridge leavedrivers/net/dsa/b53/b53_common.c+2 -10 repliesApplied
6/11net: dsa: b53: always rejoin default untagged VLAN on bridge leavedrivers/net/dsa/b53/b53_common.c+5 -50 repliesApplied
7/11net: dsa: b53: do not allow to configure VLAN 0drivers/net/dsa/b53/b53_common.c+27 -90 repliesApplied
8/11net: dsa: b53: do not program vlans when vlan filtering is offdrivers/net/dsa/b53/b53_common.c+28 -200 repliesApplied
9/11net: dsa: b53: fix toggling vlan_filteringdrivers/net/dsa/b53/b53_common.c drivers/net/dsa/b53/b53_priv.h+75 -312 repliesApplied
10/11net: dsa: b53: fix learning on VLAN unaware bridgesdrivers/net/dsa/b53/b53_common.c+1 -10 repliesApplied
11/11net: dsa: b53: do not set learning and unicast/multicast on updrivers/net/dsa/b53/b53_common.c drivers/net/dsa/b53/b53_priv.h drivers/net/dsa/bcm_sf2.c+15 -80 repliesApplied

Reviews trailers per patch

None of the 11 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchFlorian Fainelli
SeriesT-b R-b
1/11
2/11
3/11
4/11
5/11
6/11
7/11
8/11
9/11
10/11
11/11

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 00/11] net: dsa: b53: accumulated fixes

This patchset aims at fixing most issues observed while running the vlan_unaware_bridge, vlan_aware_bridge and local_termination selftests.

Most tests succeed with these patches on BCM53115, connected to a BCM6368.

It took me a while to figure out that a lot of tests will fail if all ports have the same MAC address, as the switches drop any frames with DA == SA. Luckily BCM63XX boards often have enough MACs allocated for all ports, so I just needed to assign them.

The still failing tests are:

FDB learning, both vlan aware aware and unaware:

This is expected, as b53 currently does not implement changing the ageing time, and both the bridge code and DSA ignore that, so the learned entries don't age out as expected.

ping and ping6 in vlan unaware:

These fail because of the now fixed learning, the switch trying to forward packet ingressing on one of the standalone ports to the learned port of the mac address when the packets ingressed on the bridged port.

The port VLAN masks only prevent forwarding to other ports, but the ARL lookup will still happen, and the packet gets dropped because the port isn't allowed to forward there.

I have a fix/workaround for that, but as it is a bit more controversial and makes use of an unrelated feature, I decided to hold off from that and post it later.

This wasn't noticed so far, because learning was never working in VLAN unaware mode, so the traffic was always broadcast (which sidesteps the issue).

Finally some of the multicast tests from local_termination fail, where the reception worked except it shouldn't. This doesn't seem to me as a super serious issue, so I didn't attempt to debug/fix these yet.

I'm not super confident I didn't break sf2 along the way, but I did compile test and tried to find ways it cause issues (I failed to find any). I hope Florian will tell me.

Jonas Gorski (11):
net: dsa: b53: allow leaky reserved multicast
net: dsa: b53: keep CPU port always tagged again
net: dsa: b53: fix clearing PVID of a port
net: dsa: b53: fix flushing old pvid VLAN on pvid change
net: dsa: b53: fix VLAN ID for untagged vlan on bridge leave
net: dsa: b53: always rejoin default untagged VLAN on bridge leave
net: dsa: b53: do not allow to configure VLAN 0
net: dsa: b53: do not program vlans when vlan filtering is off
net: dsa: b53: fix toggling vlan_filtering
net: dsa: b53: fix learning on VLAN unaware bridges
net: dsa: b53: do not set learning and unicast/multicast on up

 drivers/net/dsa/b53/b53_common.c | 207 ++++++++++++++++++++++---------
 drivers/net/dsa/b53/b53_priv.h   |   3 +
 drivers/net/dsa/bcm_sf2.c        |   1 +
 3 files changed, 154 insertions(+), 57 deletions(-)
Signature · 1 line
2.43.0