[PATCH 078/227] crypto/uadk: use NUMA node terminology
Chengwen Feng
chengwen.feng at linux.dev
Tue Nov 3 15:50:36 CET 2026
From: Chengwen Feng <fengchengwen at huawei.com>
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 <fengchengwen at huawei.com>
---
drivers/crypto/uadk/uadk_crypto_pmd.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/crypto/uadk/uadk_crypto_pmd.c b/drivers/crypto/uadk/uadk_crypto_pmd.c
index 221ad546da..0758fb6e1b 100644
--- a/drivers/crypto/uadk/uadk_crypto_pmd.c
+++ b/drivers/crypto/uadk/uadk_crypto_pmd.c
@@ -485,7 +485,7 @@ uadk_pmd_qp_set_unique_name(struct rte_cryptodev *dev,
/* Create a ring to place process packets on */
static struct rte_ring *
uadk_pmd_qp_create_processed_pkts_ring(struct uadk_qp *qp,
- unsigned int ring_size, int socket_id)
+ unsigned int ring_size, int numa_id)
{
struct rte_ring *r = qp->processed_pkts;
@@ -501,14 +501,14 @@ uadk_pmd_qp_create_processed_pkts_ring(struct uadk_qp *qp,
return NULL;
}
- return rte_ring_create(qp->name, ring_size, socket_id,
+ return rte_ring_create(qp->name, ring_size, numa_id,
RING_F_EXACT_SZ);
}
static int
uadk_crypto_pmd_qp_setup(struct rte_cryptodev *dev, uint16_t qp_id,
const struct rte_cryptodev_qp_conf *qp_conf,
- int socket_id)
+ int numa_id)
{
struct uadk_qp *qp;
@@ -517,8 +517,8 @@ uadk_crypto_pmd_qp_setup(struct rte_cryptodev *dev, uint16_t qp_id,
uadk_crypto_pmd_qp_release(dev, qp_id);
/* Allocate the queue pair data structure. */
- qp = rte_zmalloc_socket("uadk PMD Queue Pair", sizeof(*qp),
- RTE_CACHE_LINE_SIZE, socket_id);
+ qp = rte_zmalloc_numa("uadk PMD Queue Pair", sizeof(*qp),
+ RTE_CACHE_LINE_SIZE, numa_id);
if (qp == NULL)
return (-ENOMEM);
@@ -529,7 +529,7 @@ uadk_crypto_pmd_qp_setup(struct rte_cryptodev *dev, uint16_t qp_id,
goto qp_setup_cleanup;
qp->processed_pkts = uadk_pmd_qp_create_processed_pkts_ring(qp,
- qp_conf->nb_descriptors, socket_id);
+ qp_conf->nb_descriptors, numa_id);
if (qp->processed_pkts == NULL)
goto qp_setup_cleanup;
--
2.55.0
More information about the dev
mailing list