101 lines
2.7 KiB
Diff
101 lines
2.7 KiB
Diff
From 12466753e870b9577826d238e08a744c17267a8f Mon Sep 17 00:00:00 2001
|
|
From: Chenghai Huang <huangchenghai2@huawei.com>
|
|
Date: Mon, 11 Mar 2024 16:19:46 +0800
|
|
Subject: [PATCH 34/44] uadk_tool: fix the logic for counting retransmissions
|
|
when busy
|
|
|
|
The try cnt should be set to 0 after the packet is successfully
|
|
sent, not after BUSY is returned.
|
|
|
|
Signed-off-by: Chenghai Huang <huangchenghai2@huawei.com>
|
|
---
|
|
uadk_tool/benchmark/zip_uadk_benchmark.c | 8 ++++----
|
|
uadk_tool/benchmark/zip_wd_benchmark.c | 7 +++----
|
|
2 files changed, 7 insertions(+), 8 deletions(-)
|
|
|
|
diff --git a/uadk_tool/benchmark/zip_uadk_benchmark.c b/uadk_tool/benchmark/zip_uadk_benchmark.c
|
|
index 435c0b4..9681c22 100644
|
|
--- a/uadk_tool/benchmark/zip_uadk_benchmark.c
|
|
+++ b/uadk_tool/benchmark/zip_uadk_benchmark.c
|
|
@@ -817,9 +817,8 @@ static void *zip_uadk_blk_lz77_async_run(void *arg)
|
|
|
|
while(1) {
|
|
if (get_run_state() == 0)
|
|
- break;
|
|
+ break;
|
|
|
|
- try_cnt = 0;
|
|
i = count % MAX_POOL_LENTH_COMP;
|
|
creq.src = uadk_pool->bds[i].src;
|
|
creq.dst = &hw_buff_out[i]; //temp out
|
|
@@ -845,6 +844,7 @@ static void *zip_uadk_blk_lz77_async_run(void *arg)
|
|
} else if (ret || creq.status) {
|
|
break;
|
|
}
|
|
+ try_cnt = 0;
|
|
count++;
|
|
}
|
|
|
|
@@ -1037,9 +1037,8 @@ static void *zip_uadk_blk_async_run(void *arg)
|
|
|
|
while(1) {
|
|
if (get_run_state() == 0)
|
|
- break;
|
|
+ break;
|
|
|
|
- try_cnt = 0;
|
|
i = count % MAX_POOL_LENTH_COMP;
|
|
creq.src = uadk_pool->bds[i].src;
|
|
creq.dst = uadk_pool->bds[i].dst;
|
|
@@ -1062,6 +1061,7 @@ static void *zip_uadk_blk_async_run(void *arg)
|
|
} else if (ret || creq.status) {
|
|
break;
|
|
}
|
|
+ try_cnt = 0;
|
|
count++;
|
|
}
|
|
|
|
diff --git a/uadk_tool/benchmark/zip_wd_benchmark.c b/uadk_tool/benchmark/zip_wd_benchmark.c
|
|
index d2340e0..d7bafd6 100644
|
|
--- a/uadk_tool/benchmark/zip_wd_benchmark.c
|
|
+++ b/uadk_tool/benchmark/zip_wd_benchmark.c
|
|
@@ -708,9 +708,8 @@ static void *zip_wd_blk_lz77_async_run(void *arg)
|
|
|
|
while(1) {
|
|
if (get_run_state() == 0)
|
|
- break;
|
|
+ break;
|
|
|
|
- try_cnt = 0;
|
|
i = count % MAX_POOL_LENTH_COMP;
|
|
opdata.in = bd_pool[i].src;
|
|
opdata.out = bd_pool[i].dst; //temp out
|
|
@@ -737,6 +736,7 @@ static void *zip_wd_blk_lz77_async_run(void *arg)
|
|
opdata.status == WD_IN_EPARA || opdata.status == WD_VERIFY_ERR) {
|
|
break;
|
|
}
|
|
+ try_cnt = 0;
|
|
count++;
|
|
}
|
|
|
|
@@ -984,7 +984,6 @@ static void *zip_wd_blk_async_run(void *arg)
|
|
opdata.in_len = bd_pool[i].src_len;
|
|
opdata.avail_out = out_len;
|
|
|
|
- try_cnt = 0;
|
|
tag[i].ctx = ctx;
|
|
tag[i].td_id = pdata->td_id;
|
|
tag[i].bd_idx = i;
|
|
@@ -1002,7 +1001,7 @@ static void *zip_wd_blk_async_run(void *arg)
|
|
opdata.status == WD_IN_EPARA || opdata.status == WD_VERIFY_ERR) {
|
|
break;
|
|
}
|
|
-
|
|
+ try_cnt = 0;
|
|
count++;
|
|
}
|
|
|
|
--
|
|
2.25.1
|
|
|