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/odm/odm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma/odm/odm.c b/drivers/dma/odm/odm.c index 0633ce0b4b..cf56f89394 100644 --- a/drivers/dma/odm/odm.c +++ b/drivers/dma/odm/odm.c @@ -201,7 +201,7 @@ odm_vchan_setup(struct odm_dev *odm, int vchan, const struct rte_dma_vchan_conf isize = RTE_ALIGN_CEIL(conf->nb_desc * ODM_IRING_ENTRY_SIZE_MAX * 8, 1024); isize = RTE_MIN(isize, ODM_IRING_MAX_SIZE); snprintf(name, sizeof(name), "vq%d_iring%d", odm->vfid, vchan); - mz = rte_memzone_reserve_aligned(name, isize, SOCKET_ID_ANY, 0, 1024); + mz = rte_memzone_reserve_aligned(name, isize, RTE_NUMA_ID_ANY, 0, 1024); if (mz == NULL) return -ENOMEM; vq->iring_mz = mz; @@ -211,7 +211,7 @@ odm_vchan_setup(struct odm_dev *odm, int vchan, const struct rte_dma_vchan_conf max_nb_desc = (isize / (ODM_IRING_ENTRY_SIZE_MIN * 8)); csize = RTE_ALIGN_CEIL(max_nb_desc * sizeof(union odm_cmpl_ent_s), 1024); snprintf(name, sizeof(name), "vq%d_cring%d", odm->vfid, vchan); - mz = rte_memzone_reserve_aligned(name, csize, SOCKET_ID_ANY, 0, 1024); + mz = rte_memzone_reserve_aligned(name, csize, RTE_NUMA_ID_ANY, 0, 1024); if (mz == NULL) { rc = -ENOMEM; goto iring_free; -- 2.55.0

