[PATCH 181/227] app/test-security-perf: use NUMA node terminology
Chengwen Feng
chengwen.feng at linux.dev
Tue Nov 3 15:52:19 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-security-perf/test_security_perf.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/app/test-security-perf/test_security_perf.c b/app/test-security-perf/test_security_perf.c
index dd377a6027..bebcdf922a 100644
--- a/app/test-security-perf/test_security_perf.c
+++ b/app/test-security-perf/test_security_perf.c
@@ -58,7 +58,7 @@ cryptodev_init(struct test_ctx *ctx, uint8_t nb_lcores)
struct rte_cryptodev_info dev_info;
struct rte_cryptodev_config config;
unsigned int j, nb_qp, qps_reqd;
- uint8_t socket_id;
+ uint8_t numa_id;
uint32_t dev_cnt;
int ret, core_id;
void *sec_ctx;
@@ -86,7 +86,7 @@ cryptodev_init(struct test_ctx *ctx, uint8_t nb_lcores)
sec_ctx = rte_cryptodev_get_sec_ctx(0);
ctx->sec_ctx = sec_ctx;
- socket_id = rte_socket_id();
+ numa_id = rte_numa_id();
qps_reqd = nb_lcores;
core_id = 0;
i = 0;
@@ -108,7 +108,7 @@ cryptodev_init(struct test_ctx *ctx, uint8_t nb_lcores)
memset(&config, 0, sizeof(config));
config.nb_queue_pairs = nb_qp;
- config.socket_id = socket_id;
+ config.numa_id = numa_id;
ret = rte_cryptodev_configure(i, &config);
if (ret < 0) {
@@ -123,7 +123,7 @@ cryptodev_init(struct test_ctx *ctx, uint8_t nb_lcores)
for (j = 0; j < nb_qp; j++) {
ret = rte_cryptodev_queue_pair_setup(i, j, &qp_conf,
- socket_id);
+ numa_id);
if (ret < 0) {
RTE_LOG(ERR, USER1,
"Could not configure queue pair:"
@@ -178,7 +178,7 @@ mempool_init(struct test_ctx *ctx, uint8_t nb_lcores)
sess_mpool = rte_cryptodev_sym_session_pool_create("test_sess_mp",
nb_sess_total, sec_sess_sz, RTE_MEMPOOL_CACHE_MAX_SIZE,
- 0, SOCKET_ID_ANY);
+ 0, RTE_NUMA_ID_ANY);
if (sess_mpool == NULL) {
RTE_LOG(ERR, USER1, "Could not create mempool\n");
return -1;
--
2.55.0
More information about the dev
mailing list