test-dma-perf limits the number of worker thread to 128.
The current change accomadates to RTE_MAX_LCORES. This allows
high core density platforms to run the test on `(RTE_MAX_LCORE - 1)`

Without the change we encounter `buffer overflow detected, terminated`.

Fixes: 623dc9364dc6 ("app/dma-perf: introduce DMA performance test")
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Vipin Varghese <[email protected]>
---
---
 app/test-dma-perf/main.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/test-dma-perf/main.h b/app/test-dma-perf/main.h
index 25f32b72f7..a383ac0bb3 100644
--- a/app/test-dma-perf/main.h
+++ b/app/test-dma-perf/main.h
@@ -10,7 +10,7 @@
 #include <rte_cycles.h>
 #include <rte_dev.h>
 
-#define MAX_WORKER_NB 128
+#define MAX_WORKER_NB RTE_MAX_LCORE
 
 enum {
        TEST_TYPE_NONE = 0,
-- 
2.43.0

Reply via email to