ut/vhost: select vhost_backend for UT
As of right now the UT always used the empty struture of struct spdk_vhost_dev_backend during the test. This meant VHOST_BACKEND_BLK. alloc_vdev() will require further changes to test both types of backends. So for now change it to VHOST_BACKEND_SCSI, since it currently does not touch any fields outside of the struct spdk_vhost_dev. Meanwhile next patch will do so for blk backend. Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: Ib5af7520bc8a21a7af03b810d4cc42726797a331 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12749 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
This commit is contained in:
parent
aec00435a0
commit
07e31b028a
@ -167,7 +167,7 @@ spdk_call_unaffinitized(void *cb(void *arg), void *arg)
|
||||
return cb(arg);
|
||||
}
|
||||
|
||||
static struct spdk_vhost_dev_backend g_vdev_backend;
|
||||
static struct spdk_vhost_dev_backend g_vdev_backend = {.type = VHOST_BACKEND_SCSI};
|
||||
static struct spdk_vhost_user_dev_backend g_vdev_user_backend;
|
||||
|
||||
static bool g_init_fail;
|
||||
|
Loading…
Reference in New Issue
Block a user