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/common/cnxk/roc_platform.c | 2 +-
 drivers/common/cnxk/roc_platform.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/common/cnxk/roc_platform.c 
b/drivers/common/cnxk/roc_platform.c
index 59d662fab4..7d3b9518d7 100644
--- a/drivers/common/cnxk/roc_platform.c
+++ b/drivers/common/cnxk/roc_platform.c
@@ -305,7 +305,7 @@ roc_plt_init(void)
                if (mz == NULL) {
                        mz = rte_memzone_reserve(PLT_MODEL_MZ_NAME,
                                                 sizeof(struct roc_model),
-                                                SOCKET_ID_ANY, 0);
+                                                RTE_NUMA_ID_ANY, 0);
                        if (mz == NULL) {
                                plt_err("Failed to reserve mem for roc_model");
                                return -ENOMEM;
diff --git a/drivers/common/cnxk/roc_platform.h 
b/drivers/common/cnxk/roc_platform.h
index 70937e8b3a..4003794b8f 100644
--- a/drivers/common/cnxk/roc_platform.h
+++ b/drivers/common/cnxk/roc_platform.h
@@ -406,7 +406,7 @@ plt_lmt_region_reserve_aligned(const char *name, size_t 
len, uint32_t align)
        /* To ensure returned memory is physically contiguous, bounding
         * the start and end address in 2M range.
         */
-       return rte_memzone_reserve_bounded(name, len, SOCKET_ID_ANY,
+       return rte_memzone_reserve_bounded(name, len, RTE_NUMA_ID_ANY,
                                           RTE_MEMZONE_IOVA_CONTIG,
                                           align, RTE_PGSIZE_2M);
 }
-- 
2.55.0

Reply via email to