diff options
Diffstat (limited to 'src/vlib/threads.c')
-rw-r--r-- | src/vlib/threads.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vlib/threads.c b/src/vlib/threads.c index 3e184e3e1cd..45e4d89b7ab 100644 --- a/src/vlib/threads.c +++ b/src/vlib/threads.c @@ -1681,6 +1681,9 @@ vlib_worker_thread_fn (void *arg) ASSERT (vm->thread_index == vlib_get_thread_index ()); + vm->cpu_index = clib_get_current_cpu_index (); + vm->numa_node = clib_get_current_numa_node (); + vlib_worker_thread_init (w); clib_time_init (&vm->clib_time); clib_mem_set_heap (w->thread_mheap); |