[PATCH 182/227] app/test-regex: use NUMA node terminology
Chengwen Feng
chengwen.feng at linux.dev
Tue Nov 3 15:52:20 CET 2026
From: Chengwen Feng <fengchengwen at huawei.com>
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 <fengchengwen at huawei.com>
---
app/test-regex/main.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/app/test-regex/main.c b/app/test-regex/main.c
index 81719f2e04..3b9a21bc92 100644
--- a/app/test-regex/main.c
+++ b/app/test-regex/main.c
@@ -425,7 +425,7 @@ run_regex(void *args)
0, 0, (nb_segs == 1) ? MBUF_SIZE :
(rte_align32pow2(job_len + (data_len % nb_jobs)) /
nb_segs + RTE_PKTMBUF_HEADROOM),
- rte_socket_id());
+ rte_numa_id());
if (mbuf_mp == NULL) {
printf("Error, can't create memory pool\n");
return -ENOMEM;
@@ -689,8 +689,8 @@ distribute_qps_to_lcores(uint32_t nb_cores, uint32_t nb_qps,
if (detected_lcores >= nb_cores)
break;
qps_per_lcore[detected_lcores].lcore_id = lcore_id;
- socket = rte_lcore_to_socket_id(lcore_id);
- if (socket == SOCKET_ID_ANY)
+ socket = rte_lcore_to_numa_id(lcore_id);
+ if (socket == RTE_NUMA_ID_ANY)
socket = 0;
qps_per_lcore[detected_lcores].socket = socket;
qps_per_lcore[detected_lcores].qp_id_base = min_qp_id;
--
2.55.0
More information about the dev
mailing list