patch 'net: fix tunnel parsing of non-IP 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:16 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/6950be32a45dc90f9e5f22adc1a0963e63e13fa7

Thanks.

Luca Boccassi

---
>From 6950be32a45dc90f9e5f22adc1a0963e63e13fa7 Mon Sep 17 00:00:00 2001
From: Andrey Mokrushin <a.mokrushin at ideco.ru>
Date: Mon, 9 Nov 2026 18:37:12 +0500
Subject: [PATCH] net: fix tunnel parsing of non-IP packets

[ upstream commit 3590f5734599486ca645caacbf1db0741c2cc0de ]

When the EtherType is neither IPv4 nor IPv6, rte_net_get_ptype()
skips the L3 parsing but then calls ptype_tunnel_without_udp() with
the EtherType still in proto. This function compares proto with IP
protocol numbers, so on little-endian EtherType 0x0400 (also an 802.3
length field), 0x2900 and 0x2F00 are taken as IPIP, IPv6 and GRE:
the packet is reported as an IP tunnel, and the data after the
Ethernet header is parsed as the inner packet.

Return after L2 for non-IP packets.

Fixes: d21d855464ff ("net: support GRE in software packet type parser")

Signed-off-by: Andrey Mokrushin <a.mokrushin at ideco.ru>
---
 lib/net/rte_net.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/net/rte_net.c b/lib/net/rte_net.c
index 5862ed0776..10acc91c38 100644
--- a/lib/net/rte_net.c
+++ b/lib/net/rte_net.c
@@ -348,6 +348,9 @@ l3:
 			return pkt_type;
 		}
 		pkt_type |= ptype_l4(proto);
+	} else {
+		/* not an IP packet: there is no L4 header or tunnel to parse */
+		return pkt_type;
 	}
 
 	if ((pkt_type & RTE_PTYPE_L4_MASK) == RTE_PTYPE_L4_UDP) {
-- 
2.47.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-11-16 22:52:18.969912670 +0000
+++ 0062-net-fix-tunnel-parsing-of-non-IP-packets.patch	2026-11-16 22:52:16.528234545 +0000
@@ -1 +1 @@
-From 3590f5734599486ca645caacbf1db0741c2cc0de Mon Sep 17 00:00:00 2001
+From 6950be32a45dc90f9e5f22adc1a0963e63e13fa7 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 3590f5734599486ca645caacbf1db0741c2cc0de ]
+
@@ -17 +18,0 @@
-Cc: stable at dpdk.org
@@ -25 +26 @@
-index 54bbafc09b..343eb88835 100644
+index 5862ed0776..10acc91c38 100644
@@ -28 +29 @@
-@@ -464,6 +464,9 @@ l3:
+@@ -348,6 +348,9 @@ l3:


More information about the stable mailing list