]> www.infradead.org Git - users/sagi/blktests.git/commitdiff
Change the default RDMA driver from rdma_rxe to siw
authorBart Van Assche <bvanassche@acm.org>
Tue, 22 Aug 2023 16:57:07 +0000 (09:57 -0700)
committerShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Thu, 21 Sep 2023 01:30:22 +0000 (10:30 +0900)
Since the siw driver is more stable than the rdma_rxe driver, change the
default into siw. See e.g.
https://lore.kernel.org/all/c3d1a966-b9b0-d015-38ec-86270b5045fc@acm.org/.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Documentation/running-tests.md
common/multipath-over-rdma
tests/srp/rc

index 62fae60f43fabeb35c4dd6d0268b75b78906ecae..ae80860c917abe06b80d0af9c6c55a79df9a9ec4 100644 (file)
@@ -110,17 +110,19 @@ The NVMe tests can be additionally parameterized via environment variables.
 - nvme_num_iter: 1000 (default)
   The number of iterations a test should do.
 
-### Running nvme-rdma srp tests
+### Running nvme-rdma and SRP tests
+
+These tests will use the siw (soft-iWARP) driver by default. The rdma_rxe
+(soft-RoCE) driver is also supported.
 
-Most of these tests will use the rdma_rxe (soft-RoCE) driver by default. The siw (soft-iWARP) driver is also supported.
 ```sh
-To use the rdma_rxe driver:
+To use the siw driver:
 nvme_trtype=rdma ./check nvme/
 ./check srp/
 
-To use the siw driver:
-use_siw=1 nvme_trtype=rdma ./check nvme/
-use_siw=1 ./check srp/
+To use the rdma_rxe driver:
+use_rxe=1 nvme_trtype=rdma ./check nvme/
+use_rxe=1 ./check srp/
 ```
 
 ### Normal user
index f124897917caf6d45a5e8dfc0013b0bb312abb08..ee051002fe016a6d790679f4440720e215874493 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_rxe=${use_rxe:-""}
 ramdisk_size=$((memtotal*(1024/16)))  # in bytes
 if [ $ramdisk_size -gt $max_ramdisk_size ]; then
        ramdisk_size=$max_ramdisk_size
@@ -396,7 +396,7 @@ start_soft_rdma() {
        local type
 
        {
-       if [ -n "$use_siw" ]; then
+       if [ -z "$use_rxe" ]; then
                modprobe siw || return $?
                type=siw
        else
index 8370448babbde5aabe971063b66d8f282d79759a..c77ef6c7ed411a2e5edd3a267f2fb098513a0f02 100755 (executable)
@@ -51,7 +51,13 @@ group_requires() {
        _have_module ib_uverbs
        _have_module null_blk
        _have_module rdma_cm
-       _have_module rdma_rxe
+       if [ -n "$use_rxe" ]; then
+               _have_module rdma_rxe
+       else
+               _have_module siw
+               _have_kver 5 5
+               _have_iproute2 190404
+       fi
        _have_module scsi_debug
        _have_module target_core_iblock
        _have_module target_core_mod