dpdk: remove support for dpdk 16.04
[vpp.git] / vnet / vnet / devices / virtio / vhost-user.c
index 9b0db74..fd3cd21 100644 (file)
@@ -588,6 +588,7 @@ vhost_user_socket_read (unix_file_t * uf)
        }
 
       vui->vrings[msg.state.index].last_used_idx =
+       vui->vrings[msg.state.index].last_avail_idx =
        vui->vrings[msg.state.index].used->idx;
 
       /* tell driver that we don't want interrupts */
@@ -2415,7 +2416,6 @@ done:
  * CLI functions
  */
 
-#if DPDK == 0
 /* *INDENT-OFF* */
 VLIB_CLI_COMMAND (vhost_user_connect_command, static) = {
     .path = "create vhost-user",
@@ -2435,7 +2435,6 @@ VLIB_CLI_COMMAND (show_vhost_user_command, static) = {
     .function = show_vhost_user_command_fn,
 };
 /* *INDENT-ON* */
-#endif
 
 static clib_error_t *
 vhost_user_config (vlib_main_t * vm, unformat_input_t * input)