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

luca.boccassi at gmail.com luca.boccassi at gmail.com
Mon Nov 16 23:52:17 CET 2026


Hi,

FYI, your patch has been queued to stable release 24.11.9

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 11/18/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/bluca/dpdk-stable

This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/869a5ffade16796a58d5f9a9a09d516e28dbb8e5

Thanks.

Luca Boccassi

---
>From 869a5ffade16796a58d5f9a9a09d516e28dbb8e5 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
@@ -17,7 +17,8 @@
 #define TCP_HDR_PSH_MASK ((uint8_t)0x08)
 #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))
 
 #define IS_IPV4_VXLAN_TCP4(flag) (((flag) & (RTE_MBUF_F_TX_TCP_SEG | RTE_MBUF_F_TX_IPV4 | \
@@ -35,7 +36,8 @@
 		(RTE_MBUF_F_TX_TCP_SEG | RTE_MBUF_F_TX_IPV4 | RTE_MBUF_F_TX_OUTER_IPV4 | \
 		 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.47.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-11-16 22:52:19.007475537 +0000
+++ 0063-gso-fix-segmentation-of-unsupported-tunnel-packets.patch	2026-11-16 22:52:16.528234545 +0000
@@ -1 +1 @@
-From c7ff1b39f77d32b66c1f0e62f08a2b087b65fa33 Mon Sep 17 00:00:00 2001
+From 869a5ffade16796a58d5f9a9a09d516e28dbb8e5 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit c7ff1b39f77d32b66c1f0e62f08a2b087b65fa33 ]
+
@@ -21 +22,0 @@
-Cc: stable at dpdk.org
@@ -29 +30 @@
-index d1c1b73091e..cbc6b1b77ad 100644
+index d1c1b73091..cbc6b1b77a 100644


More information about the stable mailing list