From: Longfang Liu <liulongfang@huawei.com> In the ZIP algorithm compression testing tool, when using no-SVA mode, the creation of the memory pool requires the use of different device queues based on compression and decompression operations. We address this distinction through a convention of appending suffixes. Therefore, when querying queues, suffixes need to be added for processing. Signed-off-by: Longfang Liu <liulongfang@huawei.com> --- uadk_tool/benchmark/zip_uadk_benchmark.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/uadk_tool/benchmark/zip_uadk_benchmark.c b/uadk_tool/benchmark/zip_uadk_benchmark.c index 092f710..d0f1795 100644 --- a/uadk_tool/benchmark/zip_uadk_benchmark.c +++ b/uadk_tool/benchmark/zip_uadk_benchmark.c @@ -803,12 +803,19 @@ static void free_uadk_bd_pool(void) static int init_uadk_rsv_pool(struct acc_option *option) { struct wd_mempool_setup pool_setup; - char *alg = option->algclass; + char alg[CRYPTO_MAX_ALG_NAME]; u32 insize = g_pktlen; handle_t h_ctx; u32 outsize; int i, j; + if (option->optype == 1) + snprintf(alg, CRYPTO_MAX_ALG_NAME - 1, "%s-decomp", + option->algclass); + else + snprintf(alg, CRYPTO_MAX_ALG_NAME - 1, "%s-comp", + option->algclass); + h_ctx = wd_find_ctx(alg); if (!h_ctx) { ZIP_TST_PRT("failed to find a ctx for alg: %s\n", option->algname); -- 2.43.0