Store numa-noda and cpu-index in vlib_main_t
[vpp.git] / src / vlib / unix / main.c
index 08f0506..4d6519e 100755 (executable)
@@ -671,6 +671,8 @@ vlib_unix_main (int argc, char *argv[])
 
   __os_thread_index = 0;
   vm->thread_index = 0;
+  vm->cpu_index = clib_get_current_cpu_index ();
+  vm->numa_node = clib_get_current_numa_node ();
 
   i = clib_calljmp (thread0, (uword) vm,
                    (void *) (vlib_thread_stacks[0] +