diff options
| author | Jonas Gorski <[email protected]> | 2025-04-29 20:17:06 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-05-08 02:30:35 +0000 |
| commit | 45e9d59d39503bb3e6ab4d258caea4ba6496e2dc (patch) | |
| tree | de519246321f2878a1a491ee13d7c7a75a9cde2c /net/unix/af_unix.c | |
| parent | net: dsa: b53: always rejoin default untagged VLAN on bridge leave (diff) | |
| download | kernel-45e9d59d39503bb3e6ab4d258caea4ba6496e2dc.tar.gz kernel-45e9d59d39503bb3e6ab4d258caea4ba6496e2dc.zip | |
net: dsa: b53: do not allow to configure VLAN 0
Since we cannot set forwarding destinations per VLAN, we should not have
a VLAN 0 configured, as it would allow untagged traffic to work across
ports on VLAN aware bridges regardless if a PVID untagged VLAN exists.
So remove the VLAN 0 on join, an re-add it on leave. But only do so if
we have a VLAN aware bridge, as without it, untagged traffic would
become tagged with VID 0 on a VLAN unaware bridge.
Fixes: a2482d2ce349 ("net: dsa: b53: Plug in VLAN support")
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
