openwrt/target/linux/realtek
Markus Stockhausen a22d359fa5 realtek: 6.6: fix VLAN handling
The CPU port of realtek switches needs some proper PVID set to handle
untagged packets. Because the ethernet driver does no special VLAN
handling (see CPU tag RVID/RVID_SEL) as of now we can only steer
untagged packets by setting PVID for the CPU port. VLAN handling has
never been perfect but 3 events made things worse.

- Commit a376508216 ("rtl83xx: dsa: Do nothing when vid 0")
- Commit e691e2b302 ("rtl83xx: dsa: reset PVID to 1 instead of 0")
- Upgrade to kernel 6.6

Reasons are:

- Rejecting VID 0 disabled Linux initialization routines
- Initialization for PVID forgot to set priv->ports[port].pvid
- Kernel 6.6 does no longer clarify CPU port as untagged

To fix this prepare the VID 0 setup inside the driver. Join all ports
to VID 0 and let no one from outsinde interfere with this setup.
Especially ignore PVID settings for the CPU port for all further
VLAN commands.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Suggested-by: Bjørn Mork <bjorn@mork.no>
2024-09-14 20:14:47 +02:00
..
base-files realtek: fix filter_port_list_reverse calls 2024-04-13 13:22:11 +03:00
dts realtek: normalize dts directory 2024-09-14 16:56:37 +02:00
files/firmware/rtl838x_phy
files-5.15 realtek: rework hardware-assisted indirect mdio access 2024-09-14 19:58:21 +02:00
files-6.6 realtek: 6.6: fix VLAN handling 2024-09-14 20:14:47 +02:00
image realtek: normalize dts directory 2024-09-14 16:56:37 +02:00
patches-5.15 realtek: rework hardware-assisted indirect mdio access 2024-09-14 19:58:21 +02:00
patches-6.6 realtek: 6.6: harden fw_init_cmdline() 2024-09-14 20:08:57 +02:00
profiles target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
rtl838x realtek: 6.6: copy files and config from 5.15 2024-09-14 19:58:54 +02:00
rtl839x realtek: 6.6: copy files and config from 5.15 2024-09-14 19:58:54 +02:00
rtl930x realtek: 6.6: copy files and config from 5.15 2024-09-14 19:58:54 +02:00
rtl931x realtek: 6.6: fix rtl931x kernel config 2024-09-14 19:58:54 +02:00
Makefile realtek: switch to Kernel 5.15 by default 2023-03-14 18:47:00 +01:00