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/table/rte_swx_table_em.c       | 2 +-
 lib/table/rte_swx_table_learner.c  | 2 +-
 lib/table/rte_swx_table_selector.c | 2 +-
 lib/table/rte_swx_table_wm.c       | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/table/rte_swx_table_em.c b/lib/table/rte_swx_table_em.c
index c408ea6fc3..a0587c831a 100644
--- a/lib/table/rte_swx_table_em.c
+++ b/lib/table/rte_swx_table_em.c
@@ -31,7 +31,7 @@ do {                                                          
                 \
 static void *
 env_malloc(size_t size, size_t alignment, int numa_node)
 {
-       return rte_zmalloc_socket(NULL, size, alignment, numa_node);
+       return rte_zmalloc_numa(NULL, size, alignment, numa_node);
 }
 
 static void
diff --git a/lib/table/rte_swx_table_learner.c 
b/lib/table/rte_swx_table_learner.c
index 3680bf26c1..120e38e012 100644
--- a/lib/table/rte_swx_table_learner.c
+++ b/lib/table/rte_swx_table_learner.c
@@ -26,7 +26,7 @@
 static void *
 env_calloc(size_t size, size_t alignment, int numa_node)
 {
-       return rte_zmalloc_socket(NULL, size, alignment, numa_node);
+       return rte_zmalloc_numa(NULL, size, alignment, numa_node);
 }
 
 static void
diff --git a/lib/table/rte_swx_table_selector.c 
b/lib/table/rte_swx_table_selector.c
index d42f67f157..23aa982dc3 100644
--- a/lib/table/rte_swx_table_selector.c
+++ b/lib/table/rte_swx_table_selector.c
@@ -18,7 +18,7 @@
 static void *
 env_calloc(size_t size, size_t alignment, int numa_node)
 {
-       return rte_zmalloc_socket(NULL, size, alignment, numa_node);
+       return rte_zmalloc_numa(NULL, size, alignment, numa_node);
 }
 
 static void
diff --git a/lib/table/rte_swx_table_wm.c b/lib/table/rte_swx_table_wm.c
index c57738dda3..4293e2fa6f 100644
--- a/lib/table/rte_swx_table_wm.c
+++ b/lib/table/rte_swx_table_wm.c
@@ -23,7 +23,7 @@
 static void *
 env_malloc(size_t size, size_t alignment, int numa_node)
 {
-       return rte_zmalloc_socket(NULL, size, alignment, numa_node);
+       return rte_zmalloc_numa(NULL, size, alignment, numa_node);
 }
 
 static void
-- 
2.55.0

Reply via email to