From eafb489c0daedfccb8d56cf4aa586a1641a71573 Mon Sep 17 00:00:00 2001 From: Tomasz Zawadzki Date: Thu, 22 Sep 2022 15:59:39 +0200 Subject: [PATCH] test/nvmf: do not limit qpairs in nvmf_vhost nvmf_vhost test verifies multiple components at once. In this case the number of NVMe-oF I/O qpairs per controller is limited to just 4. When a VM connected to the vhost_tgt is booted, the vhost controller is started/destroyed multiple times. The quick succession of getting I/O channels and asynchronous nature of NVMe-oF qpair deletion/creation, results in exhausting the free qpair ids. There is no reason to limit the number of NVMe-oF I/O qpairs in this test. If there ever is a need, a new test could be added exploring behaviour of components (like vhost) when get I/O channel fails. Fixes #2517 Change-Id: I32455c0499a1b79c82f921aaac193a83bd9cb468 Signed-off-by: Tomasz Zawadzki Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14626 Reviewed-by: Konrad Sztyber Reviewed-by: Jim Harris Tested-by: SPDK CI Jenkins --- test/nvmf/target/nvmf_vhost.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/nvmf/target/nvmf_vhost.sh b/test/nvmf/target/nvmf_vhost.sh index 099c7cb21..89b115927 100755 --- a/test/nvmf/target/nvmf_vhost.sh +++ b/test/nvmf/target/nvmf_vhost.sh @@ -37,7 +37,7 @@ trap 'process_shm --id $NVMF_APP_SHM_ID; killprocess $vhostpid nvmftestfini; exi # Configure NVMF tgt on host machine malloc_bdev="$($NVMF_RPC bdev_malloc_create $MALLOC_BDEV_SIZE $MALLOC_BLOCK_SIZE)" -$NVMF_RPC nvmf_create_transport $NVMF_TRANSPORT_OPTS -u 8192 -m 4 +$NVMF_RPC nvmf_create_transport $NVMF_TRANSPORT_OPTS -u 8192 $NVMF_RPC nvmf_create_subsystem nqn.2016-06.io.spdk:cnode1 -a -s SPDK00000000000001 $NVMF_RPC nvmf_subsystem_add_ns nqn.2016-06.io.spdk:cnode1 "$malloc_bdev" $NVMF_RPC nvmf_subsystem_add_listener nqn.2016-06.io.spdk:cnode1 -t $TEST_TRANSPORT -a $NVMF_FIRST_TARGET_IP -s $NVMF_PORT