]> git.droids-corp.org - dpdk.git/blobdiff - examples/tep_termination/main.c
vhost: introduce API to start a specific driver
[dpdk.git] / examples / tep_termination / main.c
index 738f2d2b0469793111407600c00bd1efac10d79f..24c62cd612cf3521c49990052520259a0d3ae6e7 100644 (file)
@@ -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;
 }