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/stack/rte_stack.c | 4 ++--
 lib/stack/rte_stack.h | 8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/lib/stack/rte_stack.c b/lib/stack/rte_stack.c
index a4bbf8a4d7..51f70f0960 100644
--- a/lib/stack/rte_stack.c
+++ b/lib/stack/rte_stack.c
@@ -52,7 +52,7 @@ rte_stack_get_memsize(unsigned int count, uint32_t flags)
 
 RTE_EXPORT_SYMBOL(rte_stack_create)
 struct rte_stack *
-rte_stack_create(const char *name, unsigned int count, int socket_id,
+rte_stack_create(const char *name, unsigned int count, int numa_id,
                 uint32_t flags)
 {
        char mz_name[RTE_MEMZONE_NAMESIZE];
@@ -108,7 +108,7 @@ rte_stack_create(const char *name, unsigned int count, int 
socket_id,
 
        rte_mcfg_tailq_write_lock();
 
-       mz = rte_memzone_reserve_aligned(mz_name, sz, socket_id,
+       mz = rte_memzone_reserve_aligned(mz_name, sz, numa_id,
                                         0, alignof(typeof(*s)));
        if (mz == NULL) {
                STACK_LOG_ERR("Cannot reserve stack memzone!");
diff --git a/lib/stack/rte_stack.h b/lib/stack/rte_stack.h
index 14983516bf..23a739912d 100644
--- a/lib/stack/rte_stack.h
+++ b/lib/stack/rte_stack.h
@@ -254,9 +254,9 @@ rte_stack_free_count(struct rte_stack *s)
  *   The name of the stack.
  * @param count
  *   The size of the stack.
- * @param socket_id
- *   The *socket_id* argument is the socket identifier in case of
- *   NUMA. The value can be *SOCKET_ID_ANY* if there is no NUMA
+ * @param numa_id
+ *   The *numa_id* argument is the NUMA node ID in case of
+ *   NUMA. The value can be *RTE_NUMA_ID_ANY* if there is no NUMA
  *   constraint for the reserved zone.
  * @param flags
  *   An OR of the following:
@@ -273,7 +273,7 @@ rte_stack_free_count(struct rte_stack *s)
  *    - ENOTSUP - platform does not support given flags combination.
  */
 struct rte_stack *
-rte_stack_create(const char *name, unsigned int count, int socket_id,
+rte_stack_create(const char *name, unsigned int count, int numa_id,
                 uint32_t flags);
 
 /**
-- 
2.55.0

Reply via email to