patch 'mempool: fix private data area size alignment' has been queued to stable release 25.11.5

Kevin Traynor ktraynor at redhat.com
Thu Dec 3 14:01:08 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/c8d133a9d8951b617713928ebcebdced91d8d14f

Thanks.

Kevin

---
>From c8d133a9d8951b617713928ebcebdced91d8d14f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Morten=20Br=C3=B8rup?= <mb at smartsharesystems.com>
Date: Thu, 10 Sep 2026 10:36:08 +0000
Subject: [PATCH] mempool: fix private data area size alignment
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

[ upstream commit f8f18c11b122da6a351a95b116b2d8f258dae8a6 ]

Object size alignment should not affect alignment of mempool header size
or private data size, which are both cache aligned.
Reverted the parts of the patch that incorrectly changed this.

Fixes: 9f34c5a7abbd ("mempool: allow config override on element alignment")

Signed-off-by: Morten Brørup <mb at smartsharesystems.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev at huawei.com>
---
 lib/mempool/rte_mempool.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/lib/mempool/rte_mempool.c b/lib/mempool/rte_mempool.c
index 3042d94c14..e2514f353e 100644
--- a/lib/mempool/rte_mempool.c
+++ b/lib/mempool/rte_mempool.c
@@ -884,7 +884,5 @@ rte_mempool_create_empty(const char *name, unsigned n, unsigned elt_size,
 	 * cache-aligned
 	 */
-	private_data_size = (private_data_size +
-			     RTE_MEMPOOL_ALIGN_MASK) & (~RTE_MEMPOOL_ALIGN_MASK);
-
+	private_data_size = RTE_CACHE_LINE_ROUNDUP(private_data_size);
 
 	/* try to allocate tailq entry */
@@ -897,5 +895,4 @@ rte_mempool_create_empty(const char *name, unsigned n, unsigned elt_size,
 	mempool_size = RTE_MEMPOOL_HEADER_SIZE(mp, cache_size);
 	mempool_size += private_data_size;
-	mempool_size = RTE_ALIGN_CEIL(mempool_size, RTE_MEMPOOL_ALIGN);
 
 	ret = snprintf(mz_name, sizeof(mz_name), RTE_MEMPOOL_MZ_FORMAT, name);
-- 
2.56.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-12-03 12:52:43.318783089 +0000
+++ 0142-mempool-fix-private-data-area-size-alignment.patch	2026-12-03 12:52:39.134266441 +0000
@@ -1 +1 @@
-From f8f18c11b122da6a351a95b116b2d8f258dae8a6 Mon Sep 17 00:00:00 2001
+From c8d133a9d8951b617713928ebcebdced91d8d14f Mon Sep 17 00:00:00 2001
@@ -8,0 +9,2 @@
+[ upstream commit f8f18c11b122da6a351a95b116b2d8f258dae8a6 ]
+
@@ -14 +15,0 @@
-Cc: stable at dpdk.org
@@ -23 +24 @@
-index 817e2b8dc1..925d21570a 100644
+index 3042d94c14..e2514f353e 100644
@@ -26 +27 @@
-@@ -874,7 +874,5 @@ rte_mempool_create_empty(const char *name, unsigned n, unsigned elt_size,
+@@ -884,7 +884,5 @@ rte_mempool_create_empty(const char *name, unsigned n, unsigned elt_size,
@@ -35 +36 @@
-@@ -887,5 +885,4 @@ rte_mempool_create_empty(const char *name, unsigned n, unsigned elt_size,
+@@ -897,5 +895,4 @@ rte_mempool_create_empty(const char *name, unsigned n, unsigned elt_size,



More information about the stable mailing list