X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fvhost_crypto%2Fmain.c;h=7d75623a5eb3cd19f419ee1bd563985ba28e936c;hb=5729407fa4d612b93ceefacef13f57c1de2ceaa6;hp=efae997815144fd824fed881ed51cbda3d093295;hpb=270054edc931967b922dd9398befd7927fecbb33;p=dpdk.git diff --git a/examples/vhost_crypto/main.c b/examples/vhost_crypto/main.c index efae997815..7d75623a5e 100644 --- a/examples/vhost_crypto/main.c +++ b/examples/vhost_crypto/main.c @@ -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