X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Funix%2Ftuntap.c;h=4a9bd46c31c37bbd6fac4414f2197cf98cd86662;hb=710071bf0ed7a0926581d1f738a142b72e795d2b;hp=5d785ac6f1c0fb8f5710acb48ad0f4ee6a0747d2;hpb=1b0c983726d4a6abe5b86b1cfad1d3280285748f;p=vpp.git diff --git a/src/vnet/unix/tuntap.c b/src/vnet/unix/tuntap.c index 5d785ac6f1c..4a9bd46c31c 100644 --- a/src/vnet/unix/tuntap.c +++ b/src/vnet/unix/tuntap.c @@ -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) !=