diff options
author | Damjan Marion <damarion@cisco.com> | 2016-11-09 10:22:49 +0100 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2016-11-09 14:04:01 +0000 |
commit | fb33ce4fc5761b67a1480c65b67f50aff9723e20 (patch) | |
tree | 6837d760623478c3e94b18e30a4f33e8135a62f2 /vlib | |
parent | 51327ac5f9ffbe74eb32f26697c563b92eadc3ce (diff) |
threads: don't wait for dpdk init in vpp_lite
Change-Id: I110cdc3cc2a26aa36dc250302a6f26db2d884e08
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'vlib')
-rw-r--r-- | vlib/vlib/threads.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vlib/vlib/threads.c b/vlib/vlib/threads.c index 70505b07..5581d43a 100644 --- a/vlib/vlib/threads.c +++ b/vlib/vlib/threads.c @@ -1439,7 +1439,6 @@ void vlib_worker_thread_fn (void *arg) { vlib_worker_thread_t *w = (vlib_worker_thread_t *) arg; - vlib_thread_main_t *tm = vlib_get_thread_main (); vlib_main_t *vm = vlib_get_main (); ASSERT (vm->cpu_index == os_get_cpu_number ()); @@ -1448,9 +1447,12 @@ vlib_worker_thread_fn (void *arg) clib_time_init (&vm->clib_time); clib_mem_set_heap (w->thread_mheap); +#if DPDK > 0 /* Wait until the dpdk init sequence is complete */ + vlib_thread_main_t *tm = vlib_get_thread_main (); while (tm->worker_thread_release == 0) vlib_worker_thread_barrier_check (); +#endif vlib_worker_thread_internal (vm); } |