X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=blobdiff_plain;f=examples%2Ftep_termination%2Fmain.c;h=24c62cd612cf3521c49990052520259a0d3ae6e7;hp=738f2d2b0469793111407600c00bd1efac10d79f;hb=af1475918124;hpb=52f8091f05ff8e30ecfd2b26cfb4b364741feda1 diff --git a/examples/tep_termination/main.c b/examples/tep_termination/main.c index 738f2d2b04..24c62cd612 100644 --- a/examples/tep_termination/main.c +++ b/examples/tep_termination/main.c @@ -1263,7 +1263,13 @@ main(int argc, char *argv[]) "failed to register vhost driver callbacks.\n"); } - rte_vhost_driver_session_start(); + if (rte_vhost_driver_start(dev_basename) < 0) { + rte_exit(EXIT_FAILURE, + "failed to start vhost driver.\n"); + } + + RTE_LCORE_FOREACH_SLAVE(lcore_id) + rte_eal_wait_lcore(lcore_id); return 0; }