avoid using thread local storage for thread index
[vpp.git] / src / plugins / srv6-ad / node.c
index e2111d6..2985196 100644 (file)
@@ -194,7 +194,7 @@ srv6_ad_localsid_fn (vlib_main_t * vm,
   n_left_from = frame->n_vectors;
   next_index = node->cached_next_index;
 
-  u32 thread_index = vlib_get_thread_index ();
+  u32 thread_index = vm->thread_index;
 
   while (n_left_from > 0)
     {