From: Chengwen Feng <[email protected]>

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 <[email protected]>
---
 drivers/bus/platform/platform.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/bus/platform/platform.c b/drivers/bus/platform/platform.c
index b122d9545f..c968f5306d 100644
--- a/drivers/bus/platform/platform.c
+++ b/drivers/bus/platform/platform.c
@@ -61,7 +61,7 @@ dev_add(const char *dev_name)
        pdev->device.name = pdev->name;
        pdev->device.devargs = rte_bus_find_devargs(&platform_bus, dev_name);
        snprintf(path, sizeof(path), PLATFORM_BUS_DEVICES_PATH "/%s/numa_node", 
dev_name);
-       pdev->device.numa_node = eal_parse_sysfs_value(path, &val) ? 
rte_socket_id() : val;
+       pdev->device.numa_node = eal_parse_sysfs_value(path, &val) ? 
rte_numa_id() : val;
 
        RTE_BUS_FOREACH_DEV(tmp, &platform_bus) {
                if (!strcmp(tmp->name, pdev->name)) {
-- 
2.55.0

Reply via email to