X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=blobdiff_plain;f=examples%2Fvhost%2Fmain.c;h=64b3eea148f80897908cbeac9d9f8be2eb3c223a;hp=43953069c34dbc899c26e1b5481d3b95e99c1937;hb=af1475918124;hpb=52f8091f05ff8e30ecfd2b26cfb4b364741feda1 diff --git a/examples/vhost/main.c b/examples/vhost/main.c index 43953069c3..64b3eea148 100644 --- a/examples/vhost/main.c +++ b/examples/vhost/main.c @@ -1545,9 +1545,16 @@ main(int argc, char *argv[]) rte_exit(EXIT_FAILURE, "failed to register vhost driver callbacks.\n"); } + + if (rte_vhost_driver_start(file) < 0) { + rte_exit(EXIT_FAILURE, + "failed to start vhost driver.\n"); + } } - rte_vhost_driver_session_start(); + RTE_LCORE_FOREACH_SLAVE(lcore_id) + rte_eal_wait_lcore(lcore_id); + return 0; }