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/pipeline/obj.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/pipeline/obj.c b/examples/pipeline/obj.c index 9f49df190e..edc437c60d 100644 --- a/examples/pipeline/obj.c +++ b/examples/pipeline/obj.c @@ -125,8 +125,8 @@ ethdev_config(const char *name, struct ethdev_params *params) } } - numa_node = rte_eth_dev_socket_id(port_id); - if (numa_node == SOCKET_ID_ANY) + numa_node = rte_eth_dev_numa_id(port_id); + if (numa_node == RTE_NUMA_ID_ANY) numa_node = 0; status = rte_eth_dev_configure( @@ -205,7 +205,7 @@ cryptodev_config(const char *name, struct cryptodev_params *params) struct rte_cryptodev_config dev_conf; struct rte_cryptodev_qp_conf queue_conf; uint8_t dev_id; - uint32_t socket_id, i; + uint32_t numa_id, i; int status; /* Check input parameters. */ @@ -225,11 +225,11 @@ cryptodev_config(const char *name, struct cryptodev_params *params) if (params->n_queue_pairs > dev_info.max_nb_queue_pairs) return -EINVAL; - socket_id = rte_cryptodev_socket_id(dev_id); + numa_id = rte_cryptodev_numa_id(dev_id); /* Configure the crypto device. */ memset(&dev_conf, 0, sizeof(dev_conf)); - dev_conf.socket_id = socket_id; + dev_conf.numa_id = numa_id; dev_conf.nb_queue_pairs = params->n_queue_pairs; dev_conf.ff_disable = 0; @@ -243,7 +243,7 @@ cryptodev_config(const char *name, struct cryptodev_params *params) queue_conf.mp_session = NULL; for (i = 0; i < params->n_queue_pairs; i++) { - status = rte_cryptodev_queue_pair_setup(dev_id, i, &queue_conf, socket_id); + status = rte_cryptodev_queue_pair_setup(dev_id, i, &queue_conf, numa_id); if (status) return status; } -- 2.55.0

