API: Cleanup APIs interface.api
[vpp.git] / src / vnet / devices / virtio / vhost_user_api.c
index b8d89a0..8f0b9d9 100644 (file)
@@ -62,8 +62,7 @@ send_sw_interface_event_deleted (vpe_api_main_t * am,
   mp->_vl_msg_id = ntohs (VL_API_SW_INTERFACE_EVENT);
   mp->sw_if_index = ntohl (sw_if_index);
 
-  mp->admin_up_down = 0;
-  mp->link_up_down = 0;
+  mp->flags = 0;
   mp->deleted = 1;
   vl_api_send_msg (reg, (u8 *) mp);
 }
@@ -244,6 +243,9 @@ vhost_user_api_hookup (vlib_main_t * vm)
   foreach_vpe_api_msg;
 #undef _
 
+  /* Mark CREATE_VHOST_USER_IF as mp safe */
+  am->is_mp_safe[VL_API_CREATE_VHOST_USER_IF] = 1;
+
   /*
    * Set up the (msg_name, crc, message-id) table
    */