openwrt/target/linux
Etienne Champetier 09322f3c0c
kernel: remove bridge offload hack
This patch initially introduced in 94b4da9b4a
breaks mvebu devices when using vlan filtering with kernel 5.15 or 6.1,
it was working ok in 5.10.

With this patch, frame that should exit untagged from the switch exit tagged.
Running 'tcpdump -Q out -evnnli eth1' (eth1 being the dsa interface)
- with the hack, frame is sent directly to the
destination port 4 with VID 2, so the switch leave the tag as instructed:
11:22:33:44:55:66 > 77:88:99:aa:bb:cc, Marvell EDSA ethertype 0xdada (Unknown), rsvd 0 0, mode From CPU, target dev 0, port 4, tagged, VID 2, FPri 0, ethertype ARP (0x0806), length 50: Ethernet (len 6), IPv4 (len 4), Request who-has 5.6.7.8 tell 1.2.3.4, length 28

- without the hack, frame is sent to the switch that
performs the forwarding decision and untagging:
11:22:33:44:55:66 > 77:88:99:aa:bb:cc, Marvell EDSA ethertype 0xdada (Unknown), rsvd 0 0, mode Forward, dev 1, port 0, tagged, VID 2, FPri 0, ethertype ARP (0x0806), length 50: Ethernet (len 6), IPv4 (len 4), Request who-has 5.6.7.8 tell 1.2.3.4, length 28

Removing this patch makes my Turris Omnia usable with vlan filtering,
ie wifi device can talk to wired device again.
Using kernel 5.15 some broadcast/multicast traffic is still leaked
(on a VLAN 2 access port I see tagged VLAN 3 frame),
using kernel 6.1 fixes that.

People needing the extra performance should try the bridger package.

Acked-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
(cherry picked from commit 244328b19c)
2023-06-20 10:55:43 +02:00
..
airoha airoha: spi-en7523: Fix compile warning 2023-05-31 23:10:11 +02:00
apm821xx apm821xx: switch over from DTB_SIZE to DEVICE_DTC_FLAGS 2023-06-10 19:06:15 +02:00
archs38 treewide: remove files for building 5.10 kernel 2023-05-12 13:02:43 +02:00
armsr uboot-armsr: add support for QEMU armv7/armv8 2023-06-13 14:15:22 +02:00
at91 treewide: remove files for building 5.10 kernel 2023-05-12 13:02:43 +02:00
ath25 kernel: remove obsolete kernel version switches 2023-05-20 15:19:14 +02:00
ath79 kernel: bump 5.15 to 5.15.117 2023-06-17 12:09:03 +02:00
bcm27xx kernel: bump 5.15 to 5.15.116 2023-06-17 12:09:03 +02:00
bcm47xx treewide: Disable building 8M RAM devices 2023-05-21 01:08:31 +02:00
bcm53xx nu801: add kmod-leds-uleds to MR26 + MR18 2023-05-18 16:17:52 +02:00
bcm63xx bcm63xx: fix the Home Hub 2a power LED 2023-06-16 14:41:05 +02:00
bcm4908 kernel: bump 5.15 to 5.15.111 2023-05-13 22:38:35 +02:00
bmips bmips: add support for NuCom R5010UNv2 2023-06-19 20:42:44 +02:00
gemini treewide: remove files for building 5.10 kernel 2023-05-12 13:02:43 +02:00
generic kernel: remove bridge offload hack 2023-06-20 10:55:43 +02:00
imx imx: image: ventana: add blkdev compressed disk image 2023-05-18 17:11:43 +02:00
ipq40xx ipq40xx: convert Buffalo WTR-M2133HP to DSA 2023-06-08 15:33:14 +02:00
ipq806x ipq806x: set PERFORMANCE as the default cpufreq governor 2023-06-16 11:42:40 +02:00
ipq807x ipq807x: image: fix eMMC flashing/recovery from within initramfs 2023-06-12 22:10:30 +02:00
kirkwood kirkwood: add support for Iomega Storcenter ix4-200d 2023-05-20 15:35:37 +02:00
lantiq treewide: Disable building 32M RAM devices 2023-05-21 01:08:22 +02:00
layerscape layerscape: 5.15: update source.codeaurora.org ppfe driver reference 2023-06-11 18:56:42 +02:00
malta treewide: remove files for building 5.10 kernel 2023-05-12 13:02:43 +02:00
mediatek kernel: bump 5.15 to 5.15.117 2023-06-17 12:09:03 +02:00
mpc85xx mpc85xx: add support for Aerohive BR200-WP 2023-05-14 00:08:35 +02:00
mvebu kernel: Backport mvneta crash fix to 5.15 2023-06-08 15:33:14 +02:00
mxs generic: enable CONFIG_ARM_CRYPTO for 32bit arm targets 2023-05-10 19:01:45 +02:00
octeon kernel: Set CONFIG_FRAME_WARN depending on target 2023-06-02 21:18:41 +02:00
octeontx kernel: enable (ARM|ARM64)_MODULE_PLTS in generic config 2023-05-24 19:26:41 +01:00
omap treewide: remove files for building 5.10 kernel 2023-05-12 13:02:43 +02:00
oxnas oxnas: Enable CONFIG_CRYPTO_LZ4 2023-06-08 17:28:11 +02:00
pistachio treewide: cleanup kernel symbol references 2023-05-12 13:02:44 +02:00
qoriq kernel: fix handling of CONFIG_DYNAMIC_DEBUG 2023-05-03 10:26:17 -07:00
ramips ramips: Add support for Beeline SmartBox TURBO+ 2023-06-17 12:59:37 +02:00
realtek realtek: eth: Do not write directly to dev->addr 2023-06-12 22:10:14 +02:00
rockchip rockchip: fix setup network config for nanopi r2c 2023-06-17 12:21:13 +02:00
sifiveu kernel: bump 5.15 to 5.15.117 2023-06-17 12:09:03 +02:00
sunxi kernel: Set CONFIG_FRAME_WARN depending on target 2023-06-02 21:18:41 +02:00
tegra treewide: remove files for building 5.10 kernel 2023-05-12 13:02:43 +02:00
uml uml: fix build error due to frame size > 1024 2023-05-24 19:25:39 +01:00
x86 kernel: kmod-amazon-ena: move to top level netdevices 2023-06-13 14:14:28 +02:00
zynq generic: enable CONFIG_ARM_CRYPTO for 32bit arm targets 2023-05-10 19:01:45 +02:00
Makefile build: fix issues with targets installed via feeds 2022-09-27 13:41:12 +02:00