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/raw/cnxk_gpio/cnxk_gpio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/raw/cnxk_gpio/cnxk_gpio.c b/drivers/raw/cnxk_gpio/cnxk_gpio.c index 8a5dda68dc..ed4e533740 100644 --- a/drivers/raw/cnxk_gpio/cnxk_gpio.c +++ b/drivers/raw/cnxk_gpio/cnxk_gpio.c @@ -147,7 +147,7 @@ cnxk_gpio_params_reserve(size_t len) { const struct rte_memzone *mz; - mz = rte_memzone_reserve(CNXK_GPIO_PARAMS_MZ_NAME, len, rte_socket_id(), 0); + mz = rte_memzone_reserve(CNXK_GPIO_PARAMS_MZ_NAME, len, rte_numa_id(), 0); if (!mz) return NULL; @@ -879,7 +879,7 @@ cnxk_gpio_probe(struct rte_vdev_device *dev) int ret; cnxk_gpio_format_name(name, sizeof(name)); - rawdev = rte_rawdev_pmd_allocate(name, sizeof(*gpiochip), rte_socket_id()); + rawdev = rte_rawdev_pmd_allocate(name, sizeof(*gpiochip), rte_numa_id()); if (!rawdev) { CNXK_GPIO_LOG(ERR, "failed to allocate %s rawdev", name); return -ENOMEM; -- 2.55.0

