30 lines
961 B
Diff
30 lines
961 B
Diff
From b36986f417bfbcfe37c822b4c9a9c7168b12554d Mon Sep 17 00:00:00 2001
|
|
From: Weili Qian <qianweili@huawei.com>
|
|
Date: Fri, 10 Nov 2023 11:52:14 +0800
|
|
Subject: [PATCH 45/85] uadk_tool: fix the called function interface
|
|
|
|
In asynchronous scenarios, call wd_do_rsa_async()
|
|
instead of wd_do_rsa_sync().
|
|
|
|
Signed-off-by: Weili Qian <qianweili@huawei.com>
|
|
---
|
|
uadk_tool/benchmark/hpre_uadk_benchmark.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/uadk_tool/benchmark/hpre_uadk_benchmark.c b/uadk_tool/benchmark/hpre_uadk_benchmark.c
|
|
index 9d89f7e..653232f 100644
|
|
--- a/uadk_tool/benchmark/hpre_uadk_benchmark.c
|
|
+++ b/uadk_tool/benchmark/hpre_uadk_benchmark.c
|
|
@@ -2211,7 +2211,7 @@ static void *ecc_uadk_async_run(void *arg)
|
|
tag[i].sess = h_sess;
|
|
req.cb_param = &tag[i];
|
|
|
|
- ret = wd_do_ecc_sync(h_sess, &req);
|
|
+ ret = wd_do_ecc_async(h_sess, &req);
|
|
if (ret == -WD_EBUSY) {
|
|
usleep(SEND_USLEEP * try_cnt);
|
|
try_cnt++;
|
|
--
|
|
2.25.1
|
|
|