vlib: barrier sync elog tracing improvements
[vpp.git] / src / vpp / api / api_main.c
index 1293348..8f33f04 100644 (file)
@@ -110,6 +110,9 @@ maybe_register_api_client (vat_main_t * vam)
   vam->my_client_index = vl_msg_api_handle_from_index_and_epoch
     (regp->vl_api_registration_pool_index,
      am->shmem_hdr->application_restarts);
+
+  vam->vl_input_queue = am->shmem_hdr->vl_input_queue;
+  api_sw_interface_dump (vam);
 }
 
 static clib_error_t *
@@ -128,8 +131,6 @@ api_command_fn (vlib_main_t * vm,
 
   maybe_register_api_client (vam);
 
-  vam->vl_input_queue = am->shmem_hdr->vl_input_queue;
-
   /* vec_validated in the init routine */
   _vec_len (vam->inbuf) = 0;
 
@@ -228,6 +229,7 @@ VLIB_CLI_COMMAND (api_command, static) =
   .path = "binary-api",
   .short_help = "binary-api [help] <name> [<args>]",
   .function = api_command_fn,
+  .is_mp_safe = 1,
 };
 /* *INDENT-ON* */
 
@@ -275,6 +277,7 @@ vl_client_get_first_plugin_msg_id (const char *plugin_name)
 uword
 unformat_sw_if_index (unformat_input_t * input, va_list * args)
 {
+  void *vam_unused = va_arg (*args, void *);
   u32 *result = va_arg (*args, u32 *);
   vnet_main_t *vnm = vnet_get_main ();
   u32 sw_if_index = ~0;