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: Ben 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: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Sasha Kotchubievsky <sashakot@mellanox.com> Reviewed-by: Seth Howell <seth.howell5141@gmail.com>
This commit is contained in:
parent
5941ab0351
commit
08f64b5761
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user