From ce8af1a4398da8d2404a35fd8a5b5ab1dc05f41d Mon Sep 17 00:00:00 2001 From: Kirill Rybalchenko Date: Wed, 14 Jun 2017 09:44:33 +0100 Subject: [PATCH] app/crypto-perf: wait for cores launched by app After test is finished the main thread waits only for lcores where runners were started because, in case of using the multicore scheduler, more cores are launched that do not need to be waited for. Signed-off-by: Kirill Rybalchenko Acked-by: Pablo de Lara --- app/test-crypto-perf/main.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/test-crypto-perf/main.c b/app/test-crypto-perf/main.c index 2322a95dca..51345ea813 100644 --- a/app/test-crypto-perf/main.c +++ b/app/test-crypto-perf/main.c @@ -504,7 +504,14 @@ main(int argc, char **argv) ctx[cdev_id], lcore_id); i++; } - rte_eal_mp_wait_lcore(); + i = 0; + RTE_LCORE_FOREACH_SLAVE(lcore_id) { + + if (i == nb_cryptodevs) + break; + rte_eal_wait_lcore(lcore_id); + i++; + } /* Get next size from range or list */ if (opts.inc_buffer_size != 0) -- 2.20.1