patch 'gro: fix returned packet count after UDP fragment merge' has been queued to stable release 24.11.9

luca.boccassi at gmail.com luca.boccassi at gmail.com
Mon Nov 16 23:52:18 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/1b8b810d43b8a3cac3b7122b90faede529f72697

Thanks.

Luca Boccassi

---
>From 1b8b810d43b8a3cac3b7122b90faede529f72697 Mon Sep 17 00:00:00 2001
From: Andrey Mokrushin <a.mokrushin at ideco.ru>
Date: Fri, 6 Nov 2026 13:07:44 +0500
Subject: [PATCH] gro: fix returned packet count after UDP fragment merge

[ upstream commit e5509c4418e926daf35da40b5ff98760f0dc513e ]

rte_gro_reassemble_burst() decrements nb_after_gro only for packets that
are merged while being inserted into the reassembly tables. When the
tables are flushed at the end of the burst, gro_udp4_tbl_timeout_flush()
and gro_vxlan_udp4_tbl_timeout_flush() call gro_udp4_merge_items(), which
merges fragments that became adjacent only after an intermediate fragment
arrived. Such merges are not reflected in nb_after_gro, but they are
accounted for in the local index i, which after the flush holds the
actual number of packets written to pkts[].

The function returns nb_after_gro regardless. When a flush-time merge
happens, the caller is told there are more packets than were actually
produced: the surplus pkts[] entries point to mbufs that are already
chained into an earlier packet. Freeing the returned burst then frees
those mbufs twice and corrupts the mempool, and the surplus entry, whose
headers have been stripped by the merge, is handed back to the caller as
a standalone packet built from fragment payload.

Return the actual packet count i instead. In the path where the flush
block is skipped, i equals nb_pkts, which also equals nb_after_gro, so
the non-merging case is unchanged.

Fixes: 74080d7dcf31 ("gro: support IPv6 for TCP")

Signed-off-by: Andrey Mokrushin <a.mokrushin at ideco.ru>
---
 lib/gro/rte_gro.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/gro/rte_gro.c b/lib/gro/rte_gro.c
index db86117609..9c6bb33c96 100644
--- a/lib/gro/rte_gro.c
+++ b/lib/gro/rte_gro.c
@@ -352,7 +352,7 @@ rte_gro_reassemble_burst(struct rte_mbuf **pkts,
 		}
 	}
 
-	return nb_after_gro;
+	return i;
 }
 
 uint16_t
-- 
2.47.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-11-16 22:52:19.045962471 +0000
+++ 0064-gro-fix-returned-packet-count-after-UDP-fragment-mer.patch	2026-11-16 22:52:16.528234545 +0000
@@ -1 +1 @@
-From e5509c4418e926daf35da40b5ff98760f0dc513e Mon Sep 17 00:00:00 2001
+From 1b8b810d43b8a3cac3b7122b90faede529f72697 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit e5509c4418e926daf35da40b5ff98760f0dc513e ]
+
@@ -28 +29,0 @@
-Cc: stable at dpdk.org
@@ -36 +37 @@
-index 578cc9b801..168960b8af 100644
+index db86117609..9c6bb33c96 100644
@@ -39 +40 @@
-@@ -349,7 +349,7 @@ rte_gro_reassemble_burst(struct rte_mbuf **pkts,
+@@ -352,7 +352,7 @@ rte_gro_reassemble_burst(struct rte_mbuf **pkts,
@@ -47 +48 @@
- RTE_EXPORT_SYMBOL(rte_gro_reassemble)
+ uint16_t


More information about the stable mailing list