]> www.infradead.org Git - users/sagi/blktests.git/commitdiff
common/multipath-over-rdma: allow to set use_siw
authorYi Zhang <yi.zhang@redhat.com>
Thu, 26 Nov 2020 08:35:32 +0000 (16:35 +0800)
committerOmar Sandoval <osandov@fb.com>
Mon, 4 Jan 2021 22:41:44 +0000 (14:41 -0800)
With this change, we can change to use siw for nvme-rdma/nvmeof-mp/srp
testing from cmdline:

$ use_siw=1 nvme-trtype=rdma ./check nvme/
$ use_siw=1 ./check nvmeof-mp/
$ use_siw=1 ./check srp/

Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Yi Zhang <yi.zhang@redhat.com>
common/multipath-over-rdma

index 56bbc858c9d602a399cce16134250546dea32b5e..9d9d2b27af8359fde7caeb190b9a213748170e91 100644 (file)
@@ -12,7 +12,7 @@ filesystem_type=ext4
 fio_aux_path=/tmp/fio-state-files
 memtotal=$(sed -n 's/^MemTotal:[[:blank:]]*\([0-9]*\)[[:blank:]]*kB$/\1/p' /proc/meminfo)
 max_ramdisk_size=$((1<<25))
-use_siw=
+use_siw=${use_siw:-""}
 ramdisk_size=$((memtotal*(1024/16)))  # in bytes
 if [ $ramdisk_size -gt $max_ramdisk_size ]; then
        ramdisk_size=$max_ramdisk_size