From: Chengwen Feng <[email protected]>

Rename socket_id parameters, internal variables and comments to
the NUMA node terminology, and switch internal calls to
rte_zmalloc_numa(), rte_numa_id() and RTE_NUMA_ID_ANY.

Signed-off-by: Chengwen Feng <[email protected]>
---
 lib/reorder/rte_reorder.c | 4 ++--
 lib/reorder/rte_reorder.h | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/reorder/rte_reorder.c b/lib/reorder/rte_reorder.c
index af5a6d9f01..daa871a39e 100644
--- a/lib/reorder/rte_reorder.c
+++ b/lib/reorder/rte_reorder.c
@@ -160,7 +160,7 @@ rte_reorder_entry_insert(struct rte_tailq_entry *new_te)
 
 RTE_EXPORT_SYMBOL(rte_reorder_create)
 struct rte_reorder_buffer*
-rte_reorder_create(const char *name, unsigned socket_id, unsigned int size)
+rte_reorder_create(const char *name, unsigned int numa_id, unsigned int size)
 {
        struct rte_reorder_buffer *b = NULL;
        struct rte_tailq_entry *te, *te_inserted;
@@ -190,7 +190,7 @@ rte_reorder_create(const char *name, unsigned socket_id, 
unsigned int size)
        }
 
        /* Allocate memory to store the reorder buffer structure. */
-       b = rte_zmalloc_socket("REORDER_BUFFER", bufsize, 0, socket_id);
+       b = rte_zmalloc_numa("REORDER_BUFFER", bufsize, 0, numa_id);
        if (b == NULL) {
                REORDER_LOG(ERR, "Memzone allocation failed");
                rte_errno = ENOMEM;
diff --git a/lib/reorder/rte_reorder.h b/lib/reorder/rte_reorder.h
index 5bcb32b164..483a260e99 100644
--- a/lib/reorder/rte_reorder.h
+++ b/lib/reorder/rte_reorder.h
@@ -59,7 +59,7 @@ rte_reorder_free(struct rte_reorder_buffer *b);
  *
  * @param name
  *   The name to be given to the reorder buffer instance.
- * @param socket_id
+ * @param numa_id
  *   The NUMA node on which the memory for the reorder buffer
  *   instance is to be reserved.
  * @param size
@@ -71,7 +71,7 @@ rte_reorder_free(struct rte_reorder_buffer *b);
  *    - EINVAL - invalid parameters
  */
 struct rte_reorder_buffer *
-rte_reorder_create(const char *name, unsigned int socket_id, unsigned int size)
+rte_reorder_create(const char *name, unsigned int numa_id, unsigned int size)
        __rte_malloc __rte_dealloc(rte_reorder_free, 1);
 
 /**
-- 
2.55.0

Reply via email to