[PATCH blktests 5/5] common/multipath-over-rdma: allow to set use_siw
From: Yi Zhang <hidden>
Date: 2020-11-24 01:05:11
Also in:
linux-nvme
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: Yi Zhang <hidden>
Date: 2020-11-24 01:05:11
Also in:
linux-nvme
Subsystem:
the rest · Maintainer:
Linus Torvalds
With this change, we can change to use siw for nvme-rdma/nvmeof-mp testing from cmdline: $ use_siw=1 nvme-trtype=rdma ./check nvme/ $ use_siw=1 ./check nvmeof-mp/ Signed-off-by: Yi Zhang <redacted> --- common/multipath-over-rdma | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/multipath-over-rdma b/common/multipath-over-rdma
index ebc5939..d0fec6f 100644
--- a/common/multipath-over-rdma
+++ b/common/multipath-over-rdma@@ -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
--
2.21.0