We used to call a dpdk function to do it, but using a function for something that simple doesn't make sense. The function also does its internal queue lookup by vid and queue number, which could potentially fail, return an error and technically require SPDK to handle it. The function makes some sense for vhost-net applications which don't touch vrings directly but rely on rte_vhost's API for enqueueing/dequeuing mbufs. SPDK touches DPDK's rings directly for the entire I/O handling, so it might just as well for initialization. This serves as cleanup. Change-Id: Ifb44fa22ea5fc3633aa85f075aa1a5cd02f5423c Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/466745 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> |
||
---|---|---|
.. | ||
rte_vhost | ||
Makefile | ||
rte_vhost_compat.c | ||
vhost_blk.c | ||
vhost_internal.h | ||
vhost_nvme.c | ||
vhost_rpc.c | ||
vhost_scsi.c | ||
vhost.c |