On Monday, 2 December 2024 06:05:22 CET Linus Lüssing wrote:
Currently the 8021q module always registers VLAN ID 0
To ensure that HW filters would forward priority frames. If you follow the argumentation in https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?i... then you can assume that the no-VLAN TT table entries should be used for VLAN 0 because it is just for priority tagging - and not an actual VLAN.
and the Linux bridge always registers VLAN ID 1 if bat0 is added to a bridge (probably as a quirk for hardware network/switch device drivers).
No, it is not a quirk. It just adds the default PVID of a bridge.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/net/...
This sets as default PVID the 1:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/net/...
And the default PVID could be changed by:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/net/...
It will "disable" the PVID in case it is 0
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/net/...
Kind regards, Sven