[PATCH 035/227] gpudev: use NUMA node terminology

Chengwen Feng chengwen.feng at linux.dev
Tue Nov 3 15:49:53 CET 2026


From: Chengwen Feng <fengchengwen at huawei.com>

Rename socket_id parameters, internal variables and comments to
the NUMA node terminology, and switch internal calls to
rte_zmalloc_numa(), rte_numa_id() and RTE_NUMA_ID_ANY.

Signed-off-by: Chengwen Feng <fengchengwen at huawei.com>
---
 lib/gpudev/gpudev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/gpudev/gpudev.c b/lib/gpudev/gpudev.c
index 4a2335834c..6d70a28387 100644
--- a/lib/gpudev/gpudev.c
+++ b/lib/gpudev/gpudev.c
@@ -169,7 +169,7 @@ gpu_shared_mem_init(void)
 		memzone = rte_memzone_reserve(GPU_MEMZONE,
 				sizeof(*gpu_shared_mem) +
 				sizeof(*gpu_shared_mem->gpus) * gpu_max,
-				SOCKET_ID_ANY, 0);
+				RTE_NUMA_ID_ANY, 0);
 	} else {
 		memzone = rte_memzone_lookup(GPU_MEMZONE);
 	}
-- 
2.55.0



More information about the dev mailing list