All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] app/testpmd: avoid mbuf pool memzone name collision
@ 2026-11-15 15:03 Mujahed Mohammed
  2026-11-16 11:25 ` [PATCH v2] " Mujahed Mohammed
  2026-11-17 19:34 ` [PATCH v3] mempool: avoid " Mujahed Mohammed
  0 siblings, 2 replies; 4+ messages in thread
From: Mujahed Mohammed @ 2026-11-15 15:03 UTC (permalink / raw)
  To: aman.deep.singh@intel.com, NBU-Contact-Thomas Monjalon (EXTERNAL)
  Cc: dev@dpdk.org, stable@dpdk.org, Maayan Kashani


[-- Attachment #1.1: Type: text/plain, Size: 4 bytes --]




[-- Attachment #1.2: Type: text/html, Size: 451 bytes --]

[-- Attachment #2: 0001-app-testpmd-avoid-mbuf-pool-memzone-name-collision.patch --]
[-- Type: application/octet-stream, Size: 1906 bytes --]

From 87f15e6967bae3d7d066598b17069958e46ae18d Mon Sep 17 00:00:00 2001
From: Mujahed Mohammed <mballas@nvidia.com>
Date: Wed, 11 Nov 2026 10:16:37 +0200
Subject: [PATCH] app/testpmd: avoid mbuf pool memzone name collision

Additional mbuf pools append a numeric size index to the base pool
name. Mempool backing chunks also append a numeric chunk index. If
the base pool needs multiple chunks, its chunk name can therefore
match the metadata memzone name of an additional pool.

Add an s marker before additional pool size indexes to keep the two
namespaces distinct while retaining the original index-zero pool
name.

Fixes: 26cbb4191e91 ("app/testpmd: add multiple pools per core creation")

Cc: stable@dpdk.org

Signed-off-by: Mujahed Mohammed <mballas@nvidia.com>
---
 .mailmap               | 1 +
 app/test-pmd/testpmd.h | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/.mailmap b/.mailmap
index a4af517007..fc7750a006 100644
--- a/.mailmap
+++ b/.mailmap
@@ -1183,6 +1183,7 @@ Morten Brørup <mb@smartsharesystems.com>
 Moti Haimovsky <motih@mellanox.com>
 Muhammad Ahmad <muhammad.ahmad@emumba.com>
 Muhammad Bilal <m.bilal@emumba.com>
+Mujahed Mohammed <mballas@nvidia.com>
 Mukesh Dua <mukesh.dua81@gmail.com>
 Mukul Katiyar <mukul@versa-networks.com>
 Murphy Yang <murphyx.yang@intel.com>
diff --git a/app/test-pmd/testpmd.h b/app/test-pmd/testpmd.h
index 2ca4aaf086..5736e60a57 100644
--- a/app/test-pmd/testpmd.h
+++ b/app/test-pmd/testpmd.h
@@ -893,8 +893,9 @@ mbuf_poolname_build(unsigned int sock_id, char *mp_name,
 		snprintf(mp_name, name_size,
 			 MBUF_POOL_NAME_PFX "_%u", sock_id);
 	else
+		/* Keep pool indexes distinct from mempool chunk suffixes. */
 		snprintf(mp_name, name_size,
-			 MBUF_POOL_NAME_PFX "_%hu_%hu", (uint16_t)sock_id, idx);
+			 MBUF_POOL_NAME_PFX "_%hu_s%hu", (uint16_t)sock_id, idx);
 }
 
 static inline struct rte_mempool *
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-17 19:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-15 15:03 [PATCH] app/testpmd: avoid mbuf pool memzone name collision Mujahed Mohammed
2026-11-16 11:25 ` [PATCH v2] " Mujahed Mohammed
2026-11-16 18:44   ` Stephen Hemminger
2026-11-17 19:34 ` [PATCH v3] mempool: avoid " Mujahed Mohammed

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.