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/dma/idxd/idxd_bus.c | 2 +- drivers/dma/idxd/idxd_common.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma/idxd/idxd_bus.c b/drivers/dma/idxd/idxd_bus.c index 2ec526ec09..197d14f9fe 100644 --- a/drivers/dma/idxd/idxd_bus.c +++ b/drivers/dma/idxd/idxd_bus.c @@ -286,7 +286,7 @@ dsa_scan(void) while ((wq = readdir(dev_dir)) != NULL) { struct rte_dsa_device *dev; - int numa_node = SOCKET_ID_ANY; + int numa_node = RTE_NUMA_ID_ANY; if (strncmp(wq->d_name, "wq", 2) != 0) continue; diff --git a/drivers/dma/idxd/idxd_common.c b/drivers/dma/idxd/idxd_common.c index dc2e8cd432..e70238794b 100644 --- a/drivers/dma/idxd/idxd_common.c +++ b/drivers/dma/idxd/idxd_common.c @@ -612,7 +612,7 @@ idxd_dmadev_create(const char *name, struct rte_device *dev, * The +1 is because we can never fully use * the ring, otherwise read == write means both full and empty. */ - idxd->batch_comp_ring = rte_zmalloc_socket(NULL, (sizeof(idxd->batch_idx_ring[0]) + + idxd->batch_comp_ring = rte_zmalloc_numa(NULL, (sizeof(idxd->batch_idx_ring[0]) + sizeof(idxd->batch_comp_ring[0])) * (idxd->max_batches + 1), sizeof(idxd->batch_comp_ring[0]), dev->numa_node); if (idxd->batch_comp_ring == NULL) { -- 2.55.0

