Commit 08f64b57 authored by Ben Walker's avatar Ben Walker
Browse files

nvmf: Shorten the shutdown test



Especially for rxe. We're not waiting for the queue pairs to get
cleaned up after disconnect, so this test fails due to running
out of qpairs sometimes.

Change-Id: Ib99133776d02743782ef1631e3880e4e6997c1b5
Signed-off-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-on: https://review.gerrithub.io/431372


Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: default avatarSasha Kotchubievsky <sashakot@mellanox.com>
Reviewed-by: default avatarSeth Howell <seth.howell5141@gmail.com>
parent 5941ab03
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -38,9 +38,9 @@ timing_exit start_nvmf_tgt
num_subsystems=10
# SoftRoce does not have enough queues available for
# this test. Detect if we're using software RDMA.
# If so, only use four subsystems.
# If so, only use two subsystem.
if check_ip_is_soft_roce "$NVMF_FIRST_TARGET_IP"; then
	num_subsystems=4
	num_subsystems=2
fi

# Create subsystems
@@ -58,7 +58,7 @@ modprobe -v nvme-rdma
modprobe -v nvme-fabrics

# Repeatedly connect and disconnect
for ((x=0; x<5;x++)); do
for ((x=0; x<2;x++)); do
	# Connect kernel host to subsystems
	for i in `seq 1 $num_subsystems`; do
		nvme connect -t rdma -n "nqn.2016-06.io.spdk:cnode${i}" -a "$NVMF_FIRST_TARGET_IP" -s "$NVMF_PORT"