aboutsummaryrefslogtreecommitdiffstats
path: root/app/test-crypto-perf/cperf_test_pmd_cyclecount.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/test-crypto-perf/cperf_test_pmd_cyclecount.c')
-rw-r--r--app/test-crypto-perf/cperf_test_pmd_cyclecount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/test-crypto-perf/cperf_test_pmd_cyclecount.c b/app/test-crypto-perf/cperf_test_pmd_cyclecount.c
index 8f761608..c8d16db6 100644
--- a/app/test-crypto-perf/cperf_test_pmd_cyclecount.c
+++ b/app/test-crypto-perf/cperf_test_pmd_cyclecount.c
@@ -145,7 +145,7 @@ pmd_cyclecount_bench_ops(struct pmd_cyclecount_state *state, uint32_t cur_op,
for (cur_iter_op = 0; cur_iter_op < iter_ops_needed;
cur_iter_op += test_burst_size) {
- uint32_t burst_size = RTE_MIN(state->opts->total_ops - cur_op,
+ uint32_t burst_size = RTE_MIN(iter_ops_needed - cur_iter_op,
test_burst_size);
struct rte_crypto_op **ops = &state->ctx->ops[cur_iter_op];