]> www.infradead.org Git - users/sagi/blktests.git/commitdiff
nvme/rc,srp/rc,common/multipath-over-rdma: rename use_rxe to USE_RXE master
authorShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Sat, 4 May 2024 08:14:48 +0000 (17:14 +0900)
committerShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Thu, 9 May 2024 07:37:06 +0000 (16:37 +0900)
To follow uppercase letter guide of environment variables, rename
use_rxe to USE_RXE.

Reviewed-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Documentation/running-tests.md
common/multipath-over-rdma
tests/nvme/rc
tests/srp/rc

index 7bd0885a91bc7e96735dcc89683557b441adc626..968702e76bb5d52c99386fc0e8934bd91a7c1cdb 100644 (file)
@@ -132,9 +132,11 @@ NVMET_TRTYPES=rdma ./check nvme/
 ./check srp/
 
 To use the rdma_rxe driver:
-use_rxe=1 NVMET_TRTYPES=rdma ./check nvme/
-use_rxe=1 ./check srp/
+USE_RXE=1 NVMET_TRTYPES=rdma ./check nvme/
+USE_RXE=1 ./check srp/
 ```
+'USE_RXE' had the old name 'use_rxe'. The old name is still usable but not
+recommended.
 
 ### Normal user
 
index ee051002fe016a6d790679f4440720e215874493..d0f4d26ce3c894687f87317f4704add4eaf18c34 100644 (file)
@@ -12,12 +12,13 @@ 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_rxe=${use_rxe:-""}
 ramdisk_size=$((memtotal*(1024/16)))  # in bytes
 if [ $ramdisk_size -gt $max_ramdisk_size ]; then
        ramdisk_size=$max_ramdisk_size
 fi
 
+_check_conflict_and_set_default USE_RXE use_rxe ""
+
 _have_legacy_dm() {
        _have_kernel_config_file || return
        if ! _check_kernel_option DM_MQ_DEFAULT; then
@@ -396,7 +397,7 @@ start_soft_rdma() {
        local type
 
        {
-       if [ -z "$use_rxe" ]; then
+       if [ -z "$USE_RXE" ]; then
                modprobe siw || return $?
                type=siw
        else
index 6fc002096d97893c7ba97e9e9c12584bfe2da499..c1ddf412033b2c764b3e182f4da699da8d512bfd 100644 (file)
@@ -97,7 +97,7 @@ _nvme_requires() {
                _have_driver nvmet-rdma
                _have_configfs
                _have_program rdma
-               if [ -n "$use_rxe" ]; then
+               if [ -n "$USE_RXE" ]; then
                        _have_driver rdma_rxe
                else
                        _have_driver siw
index c77ef6c7ed411a2e5edd3a267f2fb098513a0f02..85bd1ddcf08eece9a13244bdba1e08a0154a6ea9 100755 (executable)
@@ -51,7 +51,7 @@ group_requires() {
        _have_module ib_uverbs
        _have_module null_blk
        _have_module rdma_cm
-       if [ -n "$use_rxe" ]; then
+       if [ -n "$USE_RXE" ]; then
                _have_module rdma_rxe
        else
                _have_module siw