From 5b532e80c8f775a431762eceb7bc267e237ebe41 Mon Sep 17 00:00:00 2001 From: Changpeng Liu Date: Mon, 31 May 2021 22:00:14 +0800 Subject: [PATCH] test/vfio-user: add `subnqn` for all vfio-user tests After commit a31e319f "nvme: init discovery ctrlr using nvme_ctrlr_process_init" SPDK will not initialize vfio-user subsystem if we didn't specify it in the command line, so add this parameter as other transports already use it. Change-Id: I5331459e9a88d8d94fa8b6ce693e086516b9f0bc Signed-off-by: Changpeng Liu Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8120 Tested-by: SPDK CI Jenkins Reviewed-by: Karol Latecki Reviewed-by: Aleksey Marchuk Reviewed-by: Reviewed-by: Jim Harris --- test/nvmf/target/nvmf_vfio_user.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/nvmf/target/nvmf_vfio_user.sh b/test/nvmf/target/nvmf_vfio_user.sh index f74274236..2cd87079f 100755 --- a/test/nvmf/target/nvmf_vfio_user.sh +++ b/test/nvmf/target/nvmf_vfio_user.sh @@ -39,13 +39,13 @@ for i in $(seq 1 $NUM_DEVICES); do done for i in $(seq 1 $NUM_DEVICES); do - $SPDK_EXAMPLE_DIR/identify -r "trtype:VFIOUSER traddr:/var/run/muser/domain/muser$i/$i" -g -L nvme -L nvme_vfio -L vfio_pci + $SPDK_EXAMPLE_DIR/identify -r "trtype:VFIOUSER traddr:/var/run/muser/domain/muser$i/$i subnqn:nqn.2019-07.io.spdk:cnode$i" -g -L nvme -L nvme_vfio -L vfio_pci sleep 1 - $SPDK_EXAMPLE_DIR/perf -r "trtype:VFIOUSER traddr:/var/run/muser/domain/muser$i/$i" -s 256 -g -q 128 -o 4096 -w read -t 5 -c 0x2 + $SPDK_EXAMPLE_DIR/perf -r "trtype:VFIOUSER traddr:/var/run/muser/domain/muser$i/$i subnqn:nqn.2019-07.io.spdk:cnode$i" -s 256 -g -q 128 -o 4096 -w read -t 5 -c 0x2 sleep 1 - $SPDK_EXAMPLE_DIR/perf -r "trtype:VFIOUSER traddr:/var/run/muser/domain/muser$i/$i" -s 256 -g -q 128 -o 4096 -w write -t 5 -c 0x2 + $SPDK_EXAMPLE_DIR/perf -r "trtype:VFIOUSER traddr:/var/run/muser/domain/muser$i/$i subnqn:nqn.2019-07.io.spdk:cnode$i" -s 256 -g -q 128 -o 4096 -w write -t 5 -c 0x2 sleep 1 - $SPDK_EXAMPLE_DIR/reconnect -r "trtype:VFIOUSER traddr:/var/run/muser/domain/muser$i/$i" -g -q 32 -o 4096 -w randrw -M 50 -t 5 -c 0xE + $SPDK_EXAMPLE_DIR/reconnect -r "trtype:VFIOUSER traddr:/var/run/muser/domain/muser$i/$i subnqn:nqn.2019-07.io.spdk:cnode$i" -g -q 32 -o 4096 -w randrw -M 50 -t 5 -c 0xE sleep 1 done