patch 'net: fix tunnel parsing of non-IP packets' has been queued to stable release 25.11.5
Kevin Traynor
ktraynor at redhat.com
Thu Dec 3 14:05:53 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/dee5d8b17a9aeef3ef6f419aa39e38af37854097
Thanks.
Kevin
---
>From dee5d8b17a9aeef3ef6f419aa39e38af37854097 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 d9f2fdf357..436f59bee7 100644
--- a/lib/net/rte_net.c
+++ b/lib/net/rte_net.c
@@ -458,4 +458,7 @@ l3:
}
pkt_type |= ptype_l4(proto);
+ } else {
+ /* not an IP packet: there is no L4 header or tunnel to parse */
+ return pkt_type;
}
--
2.56.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-12-03 12:52:51.277004103 +0000
+++ 0427-net-fix-tunnel-parsing-of-non-IP-packets.patch 2026-12-03 12:52:39.332942293 +0000
@@ -1 +1 @@
-From 3590f5734599486ca645caacbf1db0741c2cc0de Mon Sep 17 00:00:00 2001
+From dee5d8b17a9aeef3ef6f419aa39e38af37854097 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 d9f2fdf357..436f59bee7 100644
@@ -28 +29 @@
-@@ -465,4 +465,7 @@ l3:
+@@ -458,4 +458,7 @@ l3:
More information about the stable
mailing list