mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-05-19 14:06:29 +02:00
b04f245c39
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.23 Removed upstreamed: pending-6.6/735-net-mediatek-mtk_eth_soc-release-MAC_MCR_FORCE_LINK-.patch[1] pending-6.6/736-net-ethernet-mtk_eth_soc-fix-PPE-hanging-issue.patch[2] mediatek/patches-6.6/232-clk-mediatek-mt7981-topckgen-flag-SGM_REG_SEL-as-cri.patch[3] Manually rebased: mediatek/patches-6.6/100-dts-update-mt7622-rfb1.patch Added: generic/backports-6.6/981-mtd-spinand-Add-support-for-5-byte-IDs.patch[4] All other patches automatically rebased. 1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.23&id=1f32abb474c1c9bdb21d9eda74c325a0b3a162e5 2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.23&id=943c14ece95eb1cf98d477462aebcbfdfd714633 3. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.23&id=6ff01b314149d1cf59caebc29384f0beed21cba4 4. See comments in https://github.com/openwrt/openwrt/pull/14992 regarding broken flogic/xiaomi_redmi-router-ax6000-ubootmod Build system: x86/64 Build-tested: x86/64/AMD Cezanne, flogic/xiaomi_redmi-router-ax6000-ubootmod, flogic/glinet_gl-mt6000 Run-tested: x86/64/AMD Cezannei, flogic/xiaomi_redmi-router-ax6000-ubootmod, flogic/glinet_gl-mt6000 Signed-off-by: John Audia <therealgraysky@proton.me>
30 lines
1.1 KiB
Diff
30 lines
1.1 KiB
Diff
From: Felix Fietkau <nbd@nbd.name>
|
|
Date: Thu, 31 Aug 2023 21:48:38 +0200
|
|
Subject: [PATCH] netfilter: nf_tables: ignore -EOPNOTSUPP on flowtable device
|
|
offload setup
|
|
|
|
On many embedded devices, it is common to configure flowtable offloading for
|
|
a mix of different devices, some of which have hardware offload support and
|
|
some of which don't.
|
|
The current code limits the ability of user space to properly set up such a
|
|
configuration by only allowing adding devices with hardware offload support to
|
|
a offload-enabled flowtable.
|
|
Given that offload-enabled flowtables also imply fallback to pure software
|
|
offloading, this limitation makes little sense.
|
|
Fix it by not bailing out when the offload setup returns -EOPNOTSUPP
|
|
|
|
Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
|
---
|
|
|
|
--- a/net/netfilter/nf_tables_api.c
|
|
+++ b/net/netfilter/nf_tables_api.c
|
|
@@ -8214,7 +8214,7 @@ static int nft_register_flowtable_net_ho
|
|
err = flowtable->data.type->setup(&flowtable->data,
|
|
hook->ops.dev,
|
|
FLOW_BLOCK_BIND);
|
|
- if (err < 0)
|
|
+ if (err < 0 && err != -EOPNOTSUPP)
|
|
goto err_unregister_net_hooks;
|
|
|
|
err = nf_register_net_hook(net, &hook->ops);
|