]> git.droids-corp.org - dpdk.git/commitdiff
app/crypto-perf: wait for cores launched by app
authorKirill Rybalchenko <kirill.rybalchenko@intel.com>
Wed, 14 Jun 2017 08:44:33 +0000 (09:44 +0100)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Thu, 6 Jul 2017 20:34:55 +0000 (22:34 +0200)
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 <kirill.rybalchenko@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
app/test-crypto-perf/main.c

index 2322a95dca80c6783467bc87c53b6086a968e5b9..51345ea813ad36c27022f8db679fa5711e5aa127 100644 (file)
@@ -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)