[PATCH 061/227] compress/zsda: use NUMA node terminology
Chengwen Feng
chengwen.feng at linux.dev
Tue Nov 3 15:50:19 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/compress/zsda/zsda_comp_pmd.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/compress/zsda/zsda_comp_pmd.c b/drivers/compress/zsda/zsda_comp_pmd.c
index 6d857be2f0..057e7178e2 100644
--- a/drivers/compress/zsda/zsda_comp_pmd.c
+++ b/drivers/compress/zsda/zsda_comp_pmd.c
@@ -227,7 +227,7 @@ zsda_private_xform_free(struct rte_compressdev *dev __rte_unused,
static int
zsda_qp_setup(struct rte_compressdev *dev, uint16_t qp_id,
- uint32_t max_inflight_ops, int socket_id)
+ uint32_t max_inflight_ops, int numa_id)
{
int ret = ZSDA_SUCCESS;
struct zsda_qp *qp_new;
@@ -247,15 +247,15 @@ zsda_qp_setup(struct rte_compressdev *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! qp_new is NULL");
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_comp_callback;
@@ -377,7 +377,7 @@ zsda_comp_dev_create(struct zsda_pci_device *zsda_pci_dev)
comp_dev->capa_mz = rte_memzone_lookup(capa_memz_name);
if (comp_dev->capa_mz == NULL)
comp_dev->capa_mz = rte_memzone_reserve(
- capa_memz_name, capa_size, rte_socket_id(), 0);
+ capa_memz_name, capa_size, rte_numa_id(), 0);
if (comp_dev->capa_mz == NULL) {
ZSDA_LOG(DEBUG, "Failed! comp_dev->capa_mz is NULL");
--
2.55.0
More information about the dev
mailing list