> > + if (rte_kvargs_count(kvlist, ETH_VHOST_IFACE_ARG) == 1) { > + ret = rte_kvargs_process(kvlist, ETH_VHOST_IFACE_ARG, > + &open_iface, &iface_name); > + if (ret < 0) > + goto out_free; > + } >
I noticed that the strdup in eth_dev_vhost_create crashes if you don't pass the iface option, so this should probably return an error if the option doesn't exist.