FIB: use vlib-log for debugging
[vpp.git] / src / vnet / unix / tuntap.c
index 5d785ac..4a9bd46 100644 (file)
@@ -153,7 +153,7 @@ tuntap_tx (vlib_main_t * vm, vlib_node_runtime_t * node, vlib_frame_t * frame)
   vnet_interface_main_t *im = &vnm->interface_main;
   u32 n_bytes = 0;
   int i;
-  u16 thread_index = vlib_get_thread_index ();
+  u16 thread_index = vm->thread_index;
 
   for (i = 0; i < n_packets; i++)
     {
@@ -243,7 +243,7 @@ tuntap_rx (vlib_main_t * vm, vlib_node_runtime_t * node, vlib_frame_t * frame)
   vlib_buffer_t *b;
   u32 bi;
   const uword buffer_size = VLIB_BUFFER_DATA_SIZE;
-  u16 thread_index = vlib_get_thread_index ();
+  u16 thread_index = vm->thread_index;
 
   /** Make sure we have some RX buffers. */
   {
@@ -711,7 +711,7 @@ tuntap_ip4_add_del_interface_address (ip4_main_t * im,
 
   /* if the address is being applied to an interface that is not in
    * the same table/VRF as this tap, then ignore it.
-   * If we don't do this overlapping address spaces in the diferent tables
+   * If we don't do this overlapping address spaces in the different tables
    * breaks the linux host's routing tables */
   if (fib_table_get_index_for_sw_if_index (FIB_PROTOCOL_IP4,
                                           sw_if_index) !=
@@ -796,7 +796,7 @@ struct in6_ifreq
  * @brief Add or Del tun/tap interface address.
  *
  * Both the v6 interface address API and the way ifconfig
- * displays subinterfaces differ from their v4 couterparts.
+ * displays subinterfaces differ from their v4 counterparts.
  * The code given here seems to work but YMMV.
  *
  * @param *im - ip6_main_t
@@ -827,7 +827,7 @@ tuntap_ip6_add_del_interface_address (ip6_main_t * im,
 
   /* if the address is being applied to an interface that is not in
    * the same table/VRF as this tap, then ignore it.
-   * If we don't do this overlapping address spaces in the diferent tables
+   * If we don't do this overlapping address spaces in the different tables
    * breaks the linux host's routing tables */
   if (fib_table_get_index_for_sw_if_index (FIB_PROTOCOL_IP6,
                                           sw_if_index) !=