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]> --- app/test-flow-perf/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/test-flow-perf/main.c b/app/test-flow-perf/main.c index db7269315c..5f83713a98 100644 --- a/app/test-flow-perf/main.c +++ b/app/test-flow-perf/main.c @@ -2088,7 +2088,7 @@ init_port(void) mbuf_mp = rte_pktmbuf_pool_create("mbuf_pool", total_mbuf_num, mbuf_cache_size, 0, mbuf_size, - rte_socket_id()); + rte_numa_id()); if (mbuf_mp == NULL) rte_exit(EXIT_FAILURE, "Error: can't init mbuf pool\n"); @@ -2136,7 +2136,7 @@ init_port(void) rxq_conf = dev_info.default_rxconf; for (std_queue = 0; std_queue < rx_queues_count; std_queue++) { ret = rte_eth_rx_queue_setup(port_id, std_queue, rxd_count, - rte_eth_dev_socket_id(port_id), + rte_eth_dev_numa_id(port_id), &rxq_conf, mbuf_mp); if (ret < 0) @@ -2148,7 +2148,7 @@ init_port(void) txq_conf = dev_info.default_txconf; for (std_queue = 0; std_queue < tx_queues_count; std_queue++) { ret = rte_eth_tx_queue_setup(port_id, std_queue, txd_count, - rte_eth_dev_socket_id(port_id), + rte_eth_dev_numa_id(port_id), &txq_conf); if (ret < 0) rte_exit(EXIT_FAILURE, -- 2.55.0

