Add -fno-common compile option
[vpp.git] / src / vnet / dpo / interface_rx_dpo.c
index 4e5b1a5..90868b9 100644 (file)
@@ -17,6 +17,8 @@
 #include <vnet/fib/fib_node.h>
 #include <vnet/l2/l2_input.h>
 
+interface_rx_dpo_t *interface_rx_dpo_pool;
+
 /*
  * The 'DB' of interface DPOs.
  * There is only one  per-interface per-protocol, so this is a per-interface
@@ -239,7 +241,7 @@ interface_rx_dpo_inline (vlib_main_t * vm,
                         u8 is_l2)
 {
     u32 n_left_from, next_index, * from, * to_next;
-    u32 thread_index = vlib_get_thread_index ();
+    u32 thread_index = vm->thread_index;
     vnet_interface_main_t *im;
 
     im = &vnet_get_main ()->interface_main;