patch 'gso: fix segmentation of unsupported tunnel packets' has been queued to stable release 25.11.5

Kevin Traynor ktraynor at redhat.com
Thu Dec 3 14:05:54 CET 2026


Hi,

FYI, your patch has been queued to stable release 25.11.5

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 12/08/26. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Queued patches are on a temporary branch at:
https://github.com/kevintraynor/dpdk-stable

This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/e61ec50a1becd9e479d2e2e490764e7fd3c89961

Thanks.

Kevin

---
>From e61ec50a1becd9e479d2e2e490764e7fd3c89961 Mon Sep 17 00:00:00 2001
From: Andrey Mokrushin <a.mokrushin at ideco.ru>
Date: Mon, 9 Nov 2026 14:27:42 +0500
Subject: [PATCH] gso: fix segmentation of unsupported tunnel packets

[ upstream commit c7ff1b39f77d32b66c1f0e62f08a2b087b65fa33 ]

IS_IPV4_TCP() and IS_IPV4_UDP() do not check the tunnel type bits.
A tunnel packet that does not match any of the tunnel cases (IPIP,
GENEVE, IPv6 outer header, VXLAN or GRE without its type in gso_types)
is segmented as a plain TCP/IPv4 or UDP/IPv4 packet. For a tunnel
packet, l2_len, l3_len and l4_len describe the inner headers, so the
segments get wrong header boundaries, and the IPv4 and TCP header
updates overwrite the outer Ethernet and IPv4 headers. When the bytes
read as fragment offset are not zero, the packet is returned
unsegmented instead.

Return -ENOTSUP for such packets, as documented for protocols that
can not be segmented.

Fixes: 119583797b6a ("gso: support TCP/IPv4 GSO")
Fixes: b166d4f30b66 ("gso: support UDP/IPv4 fragmentation")

Signed-off-by: Andrey Mokrushin <a.mokrushin at ideco.ru>
---
 lib/gso/gso_common.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lib/gso/gso_common.h b/lib/gso/gso_common.h
index d1c1b73091..cbc6b1b77a 100644
--- a/lib/gso/gso_common.h
+++ b/lib/gso/gso_common.h
@@ -18,5 +18,6 @@
 #define TCP_HDR_FIN_MASK ((uint8_t)0x01)
 
-#define IS_IPV4_TCP(flag) (((flag) & (RTE_MBUF_F_TX_TCP_SEG | RTE_MBUF_F_TX_IPV4)) == \
+#define IS_IPV4_TCP(flag) (((flag) & (RTE_MBUF_F_TX_TCP_SEG | RTE_MBUF_F_TX_IPV4 | \
+				RTE_MBUF_F_TX_TUNNEL_MASK)) == \
 		(RTE_MBUF_F_TX_TCP_SEG | RTE_MBUF_F_TX_IPV4))
 
@@ -36,5 +37,6 @@
 		 RTE_MBUF_F_TX_TUNNEL_GRE))
 
-#define IS_IPV4_UDP(flag) (((flag) & (RTE_MBUF_F_TX_UDP_SEG | RTE_MBUF_F_TX_IPV4)) == \
+#define IS_IPV4_UDP(flag) (((flag) & (RTE_MBUF_F_TX_UDP_SEG | RTE_MBUF_F_TX_IPV4 | \
+				RTE_MBUF_F_TX_TUNNEL_MASK)) == \
 		(RTE_MBUF_F_TX_UDP_SEG | RTE_MBUF_F_TX_IPV4))
 
-- 
2.56.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-12-03 12:52:51.304442315 +0000
+++ 0428-gso-fix-segmentation-of-unsupported-tunnel-packets.patch	2026-12-03 12:52:39.333096470 +0000
@@ -1 +1 @@
-From c7ff1b39f77d32b66c1f0e62f08a2b087b65fa33 Mon Sep 17 00:00:00 2001
+From e61ec50a1becd9e479d2e2e490764e7fd3c89961 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit c7ff1b39f77d32b66c1f0e62f08a2b087b65fa33 ]
+
@@ -21 +22,0 @@
-Cc: stable at dpdk.org



More information about the stable mailing list