Merge pull request #7250 from lealem47/ecbAsync

Fix for AES-ECB benchmark livelock with Async
pull/7251/head
David Garske 2024-02-15 15:37:46 -08:00 committed by GitHub
commit f0a162c265
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -4697,7 +4697,7 @@ static void bench_aesecb_internal(int useDeviceID,
/* while free pending slots in queue, submit ops */
for (i = 0; i < BENCH_MAX_PENDING; i++) {
if (bench_async_check(&ret, BENCH_ASYNC_GET_DEV(&enc[i]), 0,
&times, numBlocks, &pending)) {
&times, outer_loop_limit, &pending)) {
#ifdef HAVE_FIPS
wc_AesEncryptDirect(&enc[i], bench_cipher, bench_plain);
#else
@ -4748,7 +4748,7 @@ exit_aes_enc:
/* while free pending slots in queue, submit ops */
for (i = 0; i < BENCH_MAX_PENDING; i++) {
if (bench_async_check(&ret, BENCH_ASYNC_GET_DEV(&enc[i]), 0,
&times, numBlocks, &pending)) {
&times, outer_loop_limit, &pending)) {
#ifdef HAVE_FIPS
wc_AesDecryptDirect(&enc[i], bench_plain, bench_cipher);
#else