[PATCH 080/227] crypto/zsda: use NUMA node terminology

Chengwen Feng chengwen.feng at linux.dev
Tue Nov 3 15:50:38 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/zsda/zsda_crypto_pmd.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/crypto/zsda/zsda_crypto_pmd.c b/drivers/crypto/zsda/zsda_crypto_pmd.c
index d1cdfcce0b..d080a26891 100644
--- a/drivers/crypto/zsda/zsda_crypto_pmd.c
+++ b/drivers/crypto/zsda/zsda_crypto_pmd.c
@@ -115,7 +115,7 @@ zsda_crypto_stats_reset(struct rte_cryptodev *dev)
 static int
 zsda_qp_setup(struct rte_cryptodev *dev, uint16_t qp_id,
 		  const struct rte_cryptodev_qp_conf *qp_conf,
-		  int socket_id)
+		  int numa_id)
 {
 	int ret = ZSDA_SUCCESS;
 	struct zsda_qp *qp_new;
@@ -134,15 +134,15 @@ zsda_qp_setup(struct rte_cryptodev *dev, uint16_t qp_id,
 			return ret;
 	}
 
-	qp_new = rte_zmalloc_socket("zsda PMD qp metadata", sizeof(*qp_new),
-				    RTE_CACHE_LINE_SIZE, socket_id);
+	qp_new = rte_zmalloc_numa("zsda PMD qp metadata", sizeof(*qp_new),
+				    RTE_CACHE_LINE_SIZE, numa_id);
 	if (qp_new == NULL) {
 		ZSDA_LOG(ERR, "Failed to alloc mem for qp struct");
 		return -ENOMEM;
 	}
 
 	task_q_info.nb_des = nb_des;
-	task_q_info.socket_id = socket_id;
+	task_q_info.numa_id = numa_id;
 	task_q_info.qp_id = qp_id;
 	task_q_info.rx_cb = zsda_crypto_callback;
 
@@ -315,7 +315,7 @@ zsda_crypto_dev_create(struct zsda_pci_device *zsda_pci_dev)
 	crypto_dev_priv->capa_mz = rte_memzone_lookup(capa_memz_name);
 	if (crypto_dev_priv->capa_mz == NULL)
 		crypto_dev_priv->capa_mz = rte_memzone_reserve(
-			capa_memz_name, capa_size, rte_socket_id(), 0);
+			capa_memz_name, capa_size, rte_numa_id(), 0);
 
 	if (crypto_dev_priv->capa_mz == NULL) {
 		ZSDA_LOG(ERR, "Failed! crypto_dev_priv->capa_mz");
-- 
2.55.0



More information about the dev mailing list