From 81353ea4dc2a57d8c4378fda6e3e0e6b6db6cd21 Mon Sep 17 00:00:00 2001 From: Raja Zidane Date: Wed, 23 Feb 2022 15:32:17 +0200 Subject: [PATCH] app/compress-perf: fix cycle count operations allocation In cyclecount main_loop function, each iteration it tries to enqueue X ops, in case Y Acked-by: Matan Azrad --- app/test-compress-perf/comp_perf_test_cyclecount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test-compress-perf/comp_perf_test_cyclecount.c b/app/test-compress-perf/comp_perf_test_cyclecount.c index 1d8e5fe6c2..c215547291 100644 --- a/app/test-compress-perf/comp_perf_test_cyclecount.c +++ b/app/test-compress-perf/comp_perf_test_cyclecount.c @@ -273,7 +273,7 @@ main_loop(struct cperf_cyclecount_ctx *ctx, enum rte_comp_xform_type type) /* Allocate compression operations */ if (ops_needed && rte_mempool_get_bulk( mem->op_pool, - (void **)ops, + (void **)&ops[ops_unused], ops_needed) != 0) { RTE_LOG(ERR, USER1, "Could not allocate enough operations\n"); -- 2.20.1