avoid using thread local storage for thread index
[vpp.git] / src / vnet / ethernet / p2p_ethernet_input.c
index eeff4f0..74e3bb8 100644 (file)
@@ -63,7 +63,7 @@ static uword
 p2p_ethernet_input_node_fn (vlib_main_t * vm,
                            vlib_node_runtime_t * node, vlib_frame_t * frame)
 {
-  u32 thread_index = vlib_get_thread_index ();
+  u32 thread_index = vm->thread_index;
   u32 n_trace = vlib_get_trace_count (vm, node);
   u32 n_left_from, *from, *to_next;
   u32 next_index;