From: Chengwen Feng <[email protected]> Rename socket_id parameters, internal structure fields, variables and comments to the NUMA node terminology, and switch calls to the NUMA-named APIs.
Signed-off-by: Chengwen Feng <[email protected]> --- drivers/regex/cn9k/cn9k_regexdev.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/regex/cn9k/cn9k_regexdev.c b/drivers/regex/cn9k/cn9k_regexdev.c index 5abc7e22bc..74a2aa6421 100644 --- a/drivers/regex/cn9k/cn9k_regexdev.c +++ b/drivers/regex/cn9k/cn9k_regexdev.c @@ -99,7 +99,7 @@ ree_qp_create(const struct rte_regexdev *dev, uint16_t qp_id) qp_memzone_name_get(name, RTE_MEMZONE_NAMESIZE, dev->data->dev_id, qp_id); - lf_mem = rte_memzone_reserve_aligned(name, len, rte_socket_id(), + lf_mem = rte_memzone_reserve_aligned(name, len, rte_numa_id(), RTE_MEMZONE_SIZE_HINT_ONLY | RTE_MEMZONE_256MB, RTE_CACHE_LINE_SIZE); if (lf_mem == NULL) { @@ -204,10 +204,10 @@ ree_dev_register(const char *name) /* allocate private device structure */ if (rte_eal_process_type() == RTE_PROC_PRIMARY) { dev->data->dev_private = - rte_zmalloc_socket("regexdev device private", + rte_zmalloc_numa("regexdev device private", sizeof(struct cn9k_ree_data), RTE_CACHE_LINE_SIZE, - rte_socket_id()); + rte_numa_id()); if (dev->data->dev_private == NULL) { cn9k_err("Cannot allocate memory for dev %s private data", -- 2.55.0

