diff options
| author | Jonas Gorski <[email protected]> | 2025-04-29 20:17:10 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-05-08 02:30:35 +0000 |
| commit | 2e7179c628d3cb9aee75e412473813b099e11ed4 (patch) | |
| tree | 95a0a3862c0e940d25aaa5dfaee3bf96b380efe5 /net/unix/af_unix.c | |
| parent | net: dsa: b53: fix learning on VLAN unaware bridges (diff) | |
| download | kernel-2e7179c628d3cb9aee75e412473813b099e11ed4.tar.gz kernel-2e7179c628d3cb9aee75e412473813b099e11ed4.zip | |
net: dsa: b53: do not set learning and unicast/multicast on up
When a port gets set up, b53 disables learning and enables the port for
flooding. This can undo any bridge configuration on the port.
E.g. the following flow would disable learning on a port:
$ ip link add br0 type bridge
$ ip link set sw1p1 master br0 <- enables learning for sw1p1
$ ip link set br0 up
$ ip link set sw1p1 up <- disables learning again
Fix this by populating dsa_switch_ops::port_setup(), and set up initial
config there.
Fixes: f9b3827ee66c ("net: dsa: b53: Support setting learning on port")
Signed-off-by: Jonas Gorski <[email protected]>
Tested-by: Florian Fainelli <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
