As a consequence MAX_VHOST_DEVICE define was removed, which was a copy of a private DPDK define. Using it was more likely a hack. Also renamed MAX_SCSI_CTRLRS to MAX_VHOST_DEVICES. Instead of dpdk_vid_mapping, a new function spdk_vhost_dev_find_by_vid is used. It simply iterates through all the controllers. Since this patch required to move the definition of spdk_vhost_ctrlrs array, it has been renamed to g_spdk_vhost_devices. Change-Id: I9b70ccb97ffaa90a22c6a1c90850b3205a9b9b27 Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/361881 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Pawel Wodkowski <pawelx.wodkowski@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> |
||
---|---|---|
.. | ||
linux | ||
rte_vhost | ||
Makefile | ||
task.c | ||
task.h | ||
vhost_iommu.c | ||
vhost_iommu.h | ||
vhost_rpc.c | ||
vhost.c |