[openwrt/openwrt] kernel: mtk_eth_soc: fix encapsulation check for GSO fraglist packets
LEDE Commits
lede-commits at lists.infradead.org
Thu Nov 13 05:25:03 PST 2025
nbd pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/05feabfd094aad94f6be4cb2f6cee713a7489847
commit 05feabfd094aad94f6be4cb2f6cee713a7489847
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Thu Nov 13 13:23:07 2025 +0000
kernel: mtk_eth_soc: fix encapsulation check for GSO fraglist packets
Use skb->encapsulation flag instead of skb_tnl_header_len() to detect
encapsulated packets. Prevents false positives on non-encapsulated packets.
Reported-by: Mason-cw Chang (張哲維) <Mason-cw.Chang at mediatek.com>
Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
.../732-05-net-ethernet-mtk_eth_soc-add-support-for-sending-fra.patch | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/linux/generic/pending-6.12/732-05-net-ethernet-mtk_eth_soc-add-support-for-sending-fra.patch b/target/linux/generic/pending-6.12/732-05-net-ethernet-mtk_eth_soc-add-support-for-sending-fra.patch
index c62c547443..8dad080fa6 100644
--- a/target/linux/generic/pending-6.12/732-05-net-ethernet-mtk_eth_soc-add-support-for-sending-fra.patch
+++ b/target/linux/generic/pending-6.12/732-05-net-ethernet-mtk_eth_soc-add-support-for-sending-fra.patch
@@ -427,7 +427,7 @@ Signed-off-by: Felix Fietkau <nbd at nbd.name>
+ if (!(skb_shinfo(skb)->gso_type & SKB_GSO_FRAGLIST))
+ return true;
+
-+ if (skb_tnl_header_len(skb))
++ if (skb->encapsulation)
+ return false;
+
+ return skb_pagelen(skb) - header_len == skb_shinfo(skb)->gso_size &&
More information about the lede-commits
mailing list