[PATCH 050/227] bus/vdev: use NUMA node terminology

Chengwen Feng chengwen.feng at linux.dev
Tue Nov 3 15:50:08 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/bus/vdev/vdev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/bus/vdev/vdev.c b/drivers/bus/vdev/vdev.c
index 02d719a44d..e3ff2e55d7 100644
--- a/drivers/bus/vdev/vdev.c
+++ b/drivers/bus/vdev/vdev.c
@@ -275,7 +275,7 @@ insert_vdev(const char *name, const char *args,
 		goto fail;
 	}
 
-	dev->device.numa_node = SOCKET_ID_ANY;
+	dev->device.numa_node = RTE_NUMA_ID_ANY;
 
 	if (find_vdev(name)) {
 		/*
@@ -537,7 +537,7 @@ vdev_scan(void)
 		}
 
 		dev->device.devargs = devargs;
-		dev->device.numa_node = SOCKET_ID_ANY;
+		dev->device.numa_node = RTE_NUMA_ID_ANY;
 		dev->device.name = devargs->name;
 
 		rte_bus_add_device(&rte_vdev_bus, &dev->device);
-- 
2.55.0



More information about the dev mailing list