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

diff --git a/examples/vhost/main.c b/examples/vhost/main.c
index e7434fd189..898625fd02 100644
--- a/examples/vhost/main.c
+++ b/examples/vhost/main.c
@@ -320,7 +320,7 @@ port_init(uint16_t port, struct rte_mempool *mbuf_pool)
        rxconf->offloads = port_conf.rxmode.offloads;
        for (q = 0; q < rx_rings; q ++) {
                retval = rte_eth_rx_queue_setup(port, q, rx_ring_size,
-                                               rte_eth_dev_socket_id(port),
+                                               rte_eth_dev_numa_id(port),
                                                rxconf,
                                                mbuf_pool);
                if (retval < 0) {
@@ -333,7 +333,7 @@ port_init(uint16_t port, struct rte_mempool *mbuf_pool)
        txconf->offloads = port_conf.txmode.offloads;
        for (q = 0; q < tx_rings; q ++) {
                retval = rte_eth_tx_queue_setup(port, q, tx_ring_size,
-                                               rte_eth_dev_socket_id(port),
+                                               rte_eth_dev_numa_id(port),
                                                txconf);
                if (retval < 0) {
                        RTE_LOG(ERR, VHOST_PORT,
@@ -1559,7 +1559,7 @@ main(int argc, char *argv[])
         */
        mbuf_pool = rte_pktmbuf_pool_create("MBUF_POOL", total_num_mbufs,
                                            MBUF_CACHE_SIZE, 0, MBUF_DATA_SIZE,
-                                           rte_socket_id());
+                                           rte_numa_id());
        if (mbuf_pool == NULL)
                rte_exit(EXIT_FAILURE, "Cannot create mbuf pool\n");
 
-- 
2.55.0

Reply via email to