From: Kirill Rybalchenko Date: Wed, 14 Jun 2017 08:44:33 +0000 (+0100) Subject: app/crypto-perf: wait for cores launched by app X-Git-Tag: spdx-start~2644 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ce8af1a4398d;p=dpdk.git 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 --- 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)