openwrt/target/linux
Etienne Champetier 244328b19c
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>
2023-06-13 21:28:13 +02:00
..
airoha airoha: spi-en7523: Fix compile warning 2023-05-31 21:30:49 +02:00
apm821xx apm821xx: switch over from DTB_SIZE to DEVICE_DTC_FLAGS 2023-06-09 22:28:45 +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-10 21:50:22 +02:00
at91 treewide: remove files for building 5.10 kernel 2023-05-12 13:02:43 +02:00
ath25 kernel: bump 5.15 to 5.15.116 2023-06-12 20:39:38 +02:00
ath79 kernel: bump 5.15 to 5.15.116 2023-06-12 20:39:38 +02:00
bcm27xx kernel: bump 6.1 to 6.1.33 2023-06-11 22:09:38 +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 treewide: Disable building 32M RAM devices 2023-05-21 01:08:22 +02:00
bcm4908 kernel: bump 5.15 to 5.15.111 2023-05-13 22:38:35 +02:00
bmips bmips: add support for Comtrend AR-5381u 2023-06-12 18:53:00 +02:00
gemini gemini: Bump to kernel v6.1 2023-06-01 23:54:20 +02:00
generic kernel: remove bridge offload hack 2023-06-13 21:28:13 +02:00
imx imx: image: ventana: add blkdev compressed disk image 2023-05-18 17:11:43 +02:00
ipq40xx generic: backport initial LEDs hw control support 2023-06-06 11:01:31 +02:00
ipq806x generic: backport initial LEDs hw control support 2023-06-06 11:01:31 +02:00
ipq807x ipq807x: image: fix eMMC flashing/recovery from within initramfs 2023-06-10 21:29:08 +02:00
kirkwood kirkwood: add support for Iomega Storcenter ix4-200d 2023-05-20 15:35:37 +02:00
lantiq lantiq: replace random_ether_addr with eth_random_addr 2023-06-10 12:40:29 +02:00
layerscape layerscape: 5.15: update source.codeaurora.org ppfe driver reference 2023-06-11 15:12:05 +02:00
malta malta: 6.1: enable kernel for testing 2023-05-28 07:45:50 +02:00
mediatek mediatek: use DEVICE_DTC_FLAGS and drop DTC_FLAGS where not needed 2023-06-06 13:26:19 +01:00
mpc85xx mpc85xx: 5.15: refresh kernel patches 2023-06-10 06:56:19 +02:00
mvebu kernel: Backport mvneta crash fix to 5.15 2023-06-03 21:15:11 +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 11:19:32 +02:00
octeontx kernel: enable (ARM|ARM64)_MODULE_PLTS in generic config 2023-05-23 05:49:46 -07: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:25:22 +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 kernel: bump 5.15 to 5.15.116 2023-06-12 20:39:38 +02:00
realtek generic: backport initial LEDs hw control support 2023-06-06 11:01:31 +02:00
rockchip kernel: Set CONFIG_FRAME_WARN depending on target 2023-06-02 11:19:32 +02:00
sifiveu kernel: Set CONFIG_FRAME_WARN depending on target 2023-06-02 11:19:32 +02:00
sunxi kernel: Set CONFIG_FRAME_WARN depending on target 2023-06-02 11:19:32 +02:00
tegra treewide: remove files for building 5.10 kernel 2023-05-12 13:02:43 +02:00
uml uml: add Kernel 6.1 support via testing 2023-05-28 20:22:23 +02:00
x86 x86/64: Enable IOMMU_V2 support for later CPUs 2023-06-03 21:15:11 +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