aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vpp/vnet/main.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/vpp/vnet/main.c b/src/vpp/vnet/main.c
index 00cb4ad385a..7d87d0cd3b1 100644
--- a/src/vpp/vnet/main.c
+++ b/src/vpp/vnet/main.c
@@ -282,11 +282,8 @@ defaulted:
/* Allocate main heap */
if ((main_heap = clib_mem_init_thread_safe (0, main_heap_size)))
{
- vlib_worker_thread_t tmp;
-
/* Figure out which numa runs the main thread */
- vlib_get_thread_core_numa (&tmp, main_core);
- __os_numa_index = tmp.numa_id;
+ __os_numa_index = clib_get_current_numa_node ();
/* and use the main heap as that numa's numa heap */
clib_mem_set_per_numa_heap (main_heap);