mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-03-04 01:23:49 +01:00
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@mediatek.com> Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
92445cc982
commit
05feabfd09
1 changed files with 1 additions and 1 deletions
|
|
@ -427,7 +427,7 @@ Signed-off-by: Felix Fietkau <nbd@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 &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue