From: Chengwen Feng <[email protected]>

Rename socket_id parameters, local variables and comments to the
NUMA node terminology, and switch calls to the NUMA-named APIs.

Signed-off-by: Chengwen Feng <[email protected]>
---
 examples/l3fwd-graph/main.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/examples/l3fwd-graph/main.c b/examples/l3fwd-graph/main.c
index 08fe177fc2..fc1603781c 100644
--- a/examples/l3fwd-graph/main.c
+++ b/examples/l3fwd-graph/main.c
@@ -218,7 +218,7 @@ check_lcore_params(void)
                        printf("Error: lcore %u is main lcore\n", lcore);
                        return -1;
                }
-               socketid = rte_lcore_to_socket_id(lcore);
+               socketid = rte_lcore_to_numa_id(lcore);
                if ((socketid != 0) && (numa_on == 0)) {
                        printf("Warning: lcore %u is on socket %d with numa 
off\n",
                               lcore, socketid);
@@ -653,7 +653,7 @@ init_mem(uint16_t portid, uint32_t nb_mbuf)
                        continue;
 
                if (numa_on)
-                       socketid = rte_lcore_to_socket_id(lcore_id);
+                       socketid = rte_lcore_to_numa_id(lcore_id);
                else
                        socketid = 0;
 
@@ -769,7 +769,7 @@ print_stats(void)
        /* Prepare stats object */
        memset(&s_param, 0, sizeof(s_param));
        s_param.f = stdout;
-       s_param.socket_id = SOCKET_ID_ANY;
+       s_param.numa_id = RTE_NUMA_ID_ANY;
        s_param.graph_patterns = &pattern;
        s_param.nb_graph_patterns = 1;
 
@@ -889,7 +889,7 @@ graph_config_mcore_dispatch(struct rte_graph_param 
graph_conf)
        }
 
        graph_conf.nb_node_patterns = nb_patterns + n_rx_node;
-       graph_conf.socket_id = rte_lcore_to_socket_id(main_lcore_id);
+       graph_conf.numa_id = rte_lcore_to_numa_id(main_lcore_id);
 
        qconf = &lcore_conf[main_lcore_id];
        snprintf(qconf->name, sizeof(qconf->name), "worker_%u",
@@ -972,7 +972,7 @@ graph_config_rtc(struct rte_graph_param graph_conf)
                                qconf->rx_queue_list[i].node_name;
                }
                graph_conf.nb_node_patterns = nb_patterns + i;
-               graph_conf.socket_id = rte_lcore_to_socket_id(lcore_id);
+               graph_conf.numa_id = rte_lcore_to_numa_id(lcore_id);
                snprintf(qconf->name, sizeof(qconf->name), "worker_%u",
                         lcore_id);
                graph_id = rte_graph_create(qconf->name, &graph_conf);
@@ -1155,7 +1155,7 @@ main(int argc, char **argv)
                        qconf = &lcore_conf[lcore_id];
 
                        if (numa_on)
-                               socketid = (uint8_t)rte_lcore_to_socket_id(
+                               socketid = (uint8_t)rte_lcore_to_numa_id(
                                        lcore_id);
                        else
                                socketid = 0;
@@ -1204,7 +1204,7 @@ main(int argc, char **argv)
                        queueid = qconf->rx_queue_list[queue].queue_id;
 
                        if (numa_on)
-                               socketid = (uint8_t)rte_lcore_to_socket_id(
+                               socketid = (uint8_t)rte_lcore_to_numa_id(
                                        lcore_id);
                        else
                                socketid = 0;
-- 
2.55.0

Reply via email to