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/flow_filtering/main.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/examples/flow_filtering/main.c b/examples/flow_filtering/main.c
index b4ccaacea1..b29feeb5ab 100644
--- a/examples/flow_filtering/main.c
+++ b/examples/flow_filtering/main.c
@@ -191,7 +191,7 @@ init_port(void)
        /* Configuring number of RX and TX queues connected to single port. */
        for (i = 0; i < NR_QUEUES; i++) {
                ret = rte_eth_rx_queue_setup(port_id, i, 512,
-                                        rte_eth_dev_socket_id(port_id),
+                                        rte_eth_dev_numa_id(port_id),
                                         &rxq_conf,
                                         mbuf_pool);
                if (ret < 0) {
@@ -206,7 +206,7 @@ init_port(void)
 
        for (i = 0; i < NR_QUEUES; i++) {
                ret = rte_eth_tx_queue_setup(port_id, i, 512,
-                               rte_eth_dev_socket_id(port_id),
+                               rte_eth_dev_numa_id(port_id),
                                &txq_conf);
                if (ret < 0) {
                        rte_exit(EXIT_FAILURE,
@@ -334,7 +334,7 @@ main(int argc, char **argv)
        /* Allocates a mempool to hold the mbufs. 8< */
        mbuf_pool = rte_pktmbuf_pool_create("mbuf_pool", 4096, 128, 0,
                                                RTE_MBUF_DEFAULT_BUF_SIZE,
-                                               rte_socket_id());
+                                               rte_numa_id());
        /* >8 End of allocating a mempool to hold the mbufs. */
        if (mbuf_pool == NULL)
                rte_exit(EXIT_FAILURE, "Cannot init mbuf pool\n");
-- 
2.55.0

Reply via email to