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/ptpclient/ptpclient.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/ptpclient/ptpclient.c b/examples/ptpclient/ptpclient.c index 59ce892742..acfe31f636 100644 --- a/examples/ptpclient/ptpclient.c +++ b/examples/ptpclient/ptpclient.c @@ -181,7 +181,7 @@ port_init(uint16_t port, struct rte_mempool *mp) rxconf->offloads = port_conf.rxmode.offloads; retval = rte_eth_rx_queue_setup(port, q, nb_rxd, - rte_eth_dev_socket_id(port), rxconf, mp); + rte_eth_dev_numa_id(port), rxconf, mp); if (retval < 0) return retval; @@ -195,7 +195,7 @@ port_init(uint16_t port, struct rte_mempool *mp) txconf->offloads = port_conf.txmode.offloads; retval = rte_eth_tx_queue_setup(port, q, nb_txd, - rte_eth_dev_socket_id(port), txconf); + rte_eth_dev_numa_id(port), txconf); if (retval < 0) return retval; } @@ -736,7 +736,7 @@ main(int argc, char *argv[]) /* Creates a new mempool in memory to hold the mbufs. 8< */ mbuf_pool = rte_pktmbuf_pool_create("MBUF_POOL", NUM_MBUFS * nb_ports, - MBUF_CACHE_SIZE, 0, RTE_MBUF_DEFAULT_BUF_SIZE, rte_socket_id()); + MBUF_CACHE_SIZE, 0, RTE_MBUF_DEFAULT_BUF_SIZE, rte_numa_id()); /* >8 End of a new mempool in memory to hold the mbufs. */ if (mbuf_pool == NULL) -- 2.55.0

