[PATCH 099/227] mempool/bucket: use NUMA node terminology
Chengwen Feng
chengwen.feng at linux.dev
Tue Nov 3 15:50:57 CET 2026
From: Chengwen Feng <fengchengwen at huawei.com>
Rename socket_id parameters, internal structure fields, variables
and comments to the NUMA node terminology, and switch calls to
the NUMA-named APIs.
Signed-off-by: Chengwen Feng <fengchengwen at huawei.com>
---
drivers/mempool/bucket/rte_mempool_bucket.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mempool/bucket/rte_mempool_bucket.c b/drivers/mempool/bucket/rte_mempool_bucket.c
index d3f626e064..a94e76bc13 100644
--- a/drivers/mempool/bucket/rte_mempool_bucket.c
+++ b/drivers/mempool/bucket/rte_mempool_bucket.c
@@ -63,7 +63,7 @@ bucket_stack_create(const struct rte_mempool *mp, unsigned int n_elts)
{
struct bucket_stack *stack;
- stack = rte_zmalloc_socket("bucket_stack",
+ stack = rte_zmalloc_numa("bucket_stack",
sizeof(struct bucket_stack) +
n_elts * sizeof(void *),
RTE_CACHE_LINE_SIZE,
@@ -465,7 +465,7 @@ bucket_alloc(struct rte_mempool *mp)
if (rc < 0)
return rc;
- bd = rte_zmalloc_socket("bucket_pool", sizeof(*bd),
+ bd = rte_zmalloc_numa("bucket_pool", sizeof(*bd),
RTE_CACHE_LINE_SIZE, mp->numa_id);
if (bd == NULL) {
rc = -ENOMEM;
--
2.55.0
More information about the dev
mailing list