openwrt/target/linux/generic/hack-5.15
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
..
204-module_strip.patch kernel: bump 5.15 to 5.15.96 2023-02-28 04:38:13 -05:00
205-kconfig-abort-configuration-on-unset-symbol.patch kconfig: abort configuration on unset symbol 2022-11-13 16:49:30 +01:00
210-darwin_scripts_include.patch
211-darwin-uuid-typedef-clash.patch
212-tools_portability.patch generic: 5.15: refresh hack patch 2022-03-27 05:00:50 +01:00
214-spidev_h_portability.patch generic: 5.15: refresh hack patch 2022-03-27 05:00:50 +01:00
220-arm-gc_sections.patch generic: 5.15: refresh hack patch 2022-03-27 05:00:50 +01:00
221-module_exports.patch kernel: bump 5.15 to 5.15.103 2023-03-25 16:01:23 +01:00
230-openwrt_lzma_options.patch kernel: bump 5.15 to 5.15.40 2022-05-16 20:26:38 +02:00
250-netfilter_depends.patch kernel: bump 5.15 to 5.15.67 2022-09-09 21:08:37 +01:00
251-kconfig.patch kernel: make it possible for packages to select page pool support 2023-01-29 10:08:21 +01:00
253-ksmbd-config.patch kernel: bump 5.15 to 5.15.96 2023-02-28 04:38:13 -05:00
259-regmap_dynamic.patch kernel: bump 5.15 to 5.15.116 2023-06-17 12:09:03 +02:00
260-crypto_test_dependencies.patch kernel: bump 5.15 to 5.15.49 2022-06-27 00:57:16 +02:00
261-lib-arc4-unhide.patch kernel: bump 5.15 to 5.15.55 2022-07-31 18:55:22 +02:00
280-rfkill-stubs.patch generic: 5.15: refresh hack patch 2022-03-27 05:00:50 +01:00
300-MIPS-r4k_cache-use-more-efficient-cache-blast.patch generic: 5.15: refresh hack patch 2022-03-27 05:00:50 +01:00
321-powerpc_crtsavres_prereq.patch kernel: bump 5.15 to 5.15.63 2022-08-25 22:07:43 +02:00
402-mtd-blktrans-call-add-disks-after-mtd-device.patch kernel: backport mtd fixes for nvmem 2023-04-06 07:26:11 +02:00
410-block-fit-partition-parser.patch kernel: bump 5.15 to 5.15.55 2022-07-31 18:55:22 +02:00
420-mtd-support-OpenWrt-s-MTD_ROOTFS_ROOT_DEV.patch kernel: bump 5.15 to 5.15.86 2023-01-03 23:55:45 +01:00
421-drivers-mtd-parsers-add-nvmem-support-to-cmdlinepart.patch
430-mtk-bmt-support.patch kernel: bump 5.15 to 5.15.55 2022-07-31 18:55:22 +02:00
601-of_net-add-mac-address-ascii-support.patch generic: update nvmem cell mac-address-ascii support 2023-04-21 21:35:45 +02:00
645-netfilter-connmark-introduce-set-dscpmark.patch kernel: bump 5.15 to 5.15.81 2022-12-11 02:42:52 +01:00
650-netfilter-add-xt_FLOWOFFLOAD-target.patch kernel: enable conntrack counter updates for iptables xt_FLOWOFFLOAD 2023-03-24 10:15:23 +01:00
651-wireless_mesh_header.patch generic: 5.15: refresh hack patch 2022-03-27 05:00:50 +01:00
660-fq_codel_defaults.patch kernel: bump 5.15 to 5.15.76 2022-10-30 17:57:25 +01:00
661-kernel-ct-size-the-hashtable-more-adequately.patch kernel: bump 5.15 to 5.15.117 2023-06-17 12:09:03 +02:00
700-swconfig_switch_drivers.patch kernel: modules: make ar8216/8327 modularizable 2022-06-05 16:58:48 +02:00
711-net-dsa-mv88e6xxx-disable-ATU-violation.patch kernel: bump 5.15 to 5.15.106 2023-04-09 14:48:34 +02:00
720-net-phy-add-aqr-phys.patch kernel: bump 5.15 to 5.15.71 2022-10-02 20:21:55 +02:00
721-net-add-packet-mangeling.patch kernel: bump 5.15 to 5.15.117 2023-06-17 12:09:03 +02:00
722-net-phy-aquantia-enable-AQR112-and-AQR412.patch kernel: bump 5.15 to 5.15.71 2022-10-02 20:21:55 +02:00
723-net-phy-aquantia-fix-system-side-protocol-mi.patch kernel: bump 5.15 to 5.15.71 2022-10-02 20:21:55 +02:00
724-net-phy-aquantia-Add-AQR113-driver-support.patch kernel: bump 5.15 to 5.15.71 2022-10-02 20:21:55 +02:00
725-net-phy-aquantia-add-PHY_IDs-for-AQR112-variants.patch kernel: bump 5.15 to 5.15.71 2022-10-02 20:21:55 +02:00
750-net-pcs-mtk-lynxi-workaround-2500BaseX-no-an.patch generic: Convert incorrect generic/5.15 patches again 2023-04-27 16:18:44 +01:00
760-net-usb-r8152-add-LED-configuration-from-OF.patch kernel: bump 5.15 to 5.15.112 2023-05-18 18:22:27 +02:00
761-dt-bindings-net-add-RTL8152-binding-documentation.patch
765-mxl-gpy-control-LED-reg-from-DT.patch kernel: refresh mxl-gpy LED patch 2023-03-25 10:35:19 +01:00
766-net-phy-mediatek-ge-add-LED-configuration-interface.patch ramips: fix mt7621 kernel compilation 2023-05-12 09:38:58 +02:00
773-bgmac-add-srab-switch.patch kernel: bump 5.15 to 5.15.103 2023-03-25 16:01:23 +01:00
780-usb-net-MeigLink_modem_support.patch kernel: bump 5.15 to 5.15.110 2023-05-03 16:32:26 +02:00
790-SFP-GE-T-ignore-TX_FAULT.patch kernel: bump 5.15 to 5.15.108 2023-04-22 01:10:24 +02:00
795-backport-phylink_pcs-helpers.patch generic: Convert incorrect generic/5.15 patches again 2023-04-27 16:18:44 +01:00
800-GPIO-add-named-gpio-exports.patch kernel: bump 5.15 to 5.15.86 2023-01-03 23:55:45 +01:00
810-bcma-ssb-fallback-sprom.patch linux/generic/hack-5.15: add missing patch header 2023-05-12 12:28:57 +02:00
901-debloat_sock_diag.patch kernel: bump 5.15 to 5.15.81 2022-12-11 02:42:52 +01:00
902-debloat_proc.patch kernel: bump 5.15 to 5.15.107 2023-04-19 00:55:58 +02:00
904-debloat_dma_buf.patch kernel: bump 5.15 to 5.15.105 2023-04-01 19:58:44 +02:00
910-kobject_uevent.patch
911-kobject_add_broadcast_uevent.patch
920-device_tree_cmdline.patch kernel: bump 5.15 to 5.15.55 2022-07-31 18:55:22 +02:00
930-Revert-Revert-Revert-driver-core-Set-fw_devlink-on-b.patch kernel: bump 5.15 to 5.15.56 2022-07-31 18:55:22 +02:00