net/virtio: unmap PCI device in secondary process
[dpdk.git] / examples / vhost_crypto / main.c
index efae997..7d75623 100644 (file)
@@ -229,7 +229,7 @@ vhost_crypto_parse_args(int argc, char **argv)
 
        argvopt = argv;
 
-       while ((opt = getopt_long(argc, argvopt, "s:",
+       while ((opt = getopt_long(argc, argvopt, "",
                                  lgopts, &option_index)) != EOF) {
 
                if (opt == '?') {
@@ -363,7 +363,7 @@ destroy_device(int vid)
        RTE_LOG(INFO, USER1, "Vhost Crypto Device %i Removed\n", vid);
 }
 
-static const struct vhost_device_ops virtio_crypto_device_ops = {
+static const struct rte_vhost_device_ops virtio_crypto_device_ops = {
        .new_device =  new_device,
        .destroy_device = destroy_device,
 };
@@ -469,6 +469,9 @@ free_resource(void)
        }
 
        memset(&options, 0, sizeof(options));
+
+       /* clean up the EAL */
+       rte_eal_cleanup();
 }
 
 int