eventdev/eth_rx: fix telemetry Rx stats reset
[dpdk.git] / examples / vdpa / main.c
index 2345f98..5ab0765 100644 (file)
@@ -153,7 +153,7 @@ destroy_device(int vid)
        }
 }
 
-static const struct vhost_device_ops vdpa_sample_devops = {
+static const struct rte_vhost_device_ops vdpa_sample_devops = {
        .new_device = new_device,
        .destroy_device = destroy_device,
 };
@@ -471,7 +471,7 @@ cmdline_parse_token_string_t cmd_device_stats_ =
 cmdline_parse_token_string_t cmd_device_bdf =
        TOKEN_STRING_INITIALIZER(struct cmd_stats_result, bdf, NULL);
 cmdline_parse_token_num_t cmd_queue_id =
-       TOKEN_NUM_INITIALIZER(struct cmd_stats_result, qid, UINT32);
+       TOKEN_NUM_INITIALIZER(struct cmd_stats_result, qid, RTE_UINT32);
 
 cmdline_parse_inst_t cmd_device_stats = {
        .f = cmd_device_stats_parsed,
@@ -576,5 +576,8 @@ main(int argc, char *argv[])
                vdpa_sample_quit();
        }
 
+       /* clean up the EAL */
+       rte_eal_cleanup();
+
        return 0;
 }