diff options
Diffstat (limited to 'src/vlib/global_funcs.h')
-rw-r--r-- | src/vlib/global_funcs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vlib/global_funcs.h b/src/vlib/global_funcs.h index f51ec381d7e..9dd01fbfb0d 100644 --- a/src/vlib/global_funcs.h +++ b/src/vlib/global_funcs.h @@ -23,7 +23,7 @@ always_inline vlib_main_t * vlib_get_main (void) { vlib_main_t *vm; - vm = vlib_mains[os_get_cpu_number ()]; + vm = vlib_mains[vlib_get_thread_index ()]; ASSERT (vm); return vm; } |