patch 'mempool: fix private data area size alignment' has been queued to stable release 24.11.9
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Tue Oct 27 12:50:12 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 10/29/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/f6fe2c3206d6f747129a91cad4b69368762fceec
Thanks.
Luca Boccassi
---
>From f6fe2c3206d6f747129a91cad4b69368762fceec 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 1e4f24783c0..9db95055317 100644
--- a/lib/mempool/rte_mempool.c
+++ b/lib/mempool/rte_mempool.c
@@ -869,9 +869,7 @@ rte_mempool_create_empty(const char *name, unsigned n, unsigned elt_size,
* reserve a memory zone for this mempool: private data is
* 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 */
te = rte_zmalloc("MEMPOOL_TAILQ_ENTRY", sizeof(*te), 0);
@@ -882,7 +880,6 @@ 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);
if (ret < 0 || ret >= (int)sizeof(mz_name)) {
--
2.47.3
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-10-27 11:43:58.288814517 +0000
+++ 0118-mempool-fix-private-data-area-size-alignment.patch 2026-10-27 11:43:53.646063535 +0000
@@ -1 +1 @@
-From f8f18c11b122da6a351a95b116b2d8f258dae8a6 Mon Sep 17 00:00:00 2001
+From f6fe2c3206d6f747129a91cad4b69368762fceec 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 1e4f24783c0..9db95055317 100644
@@ -26 +27 @@
-@@ -873,9 +873,7 @@ rte_mempool_create_empty(const char *name, unsigned n, unsigned elt_size,
+@@ -869,9 +869,7 @@ rte_mempool_create_empty(const char *name, unsigned n, unsigned elt_size,
@@ -37 +38 @@
-@@ -886,7 +884,6 @@ rte_mempool_create_empty(const char *name, unsigned n, unsigned elt_size,
+@@ -882,7 +880,6 @@ rte_mempool_create_empty(const char *name, unsigned n, unsigned elt_size,
More information about the stable
mailing list