diff --git a/scripts/rxe_cfg_small.sh b/scripts/rxe_cfg_small.sh index 4cfd7872b3..82c4e6b180 100755 --- a/scripts/rxe_cfg_small.sh +++ b/scripts/rxe_cfg_small.sh @@ -308,6 +308,9 @@ case "${1:-status}" in ) status | grep -E "${match:-.}" ;; + rxe-net) + printf '%s\n' "${rxe_to_net[@]}" + ;; *) printf 'Invalid argument (%s)\n' "$1" ;; diff --git a/test/nvmf/common.sh b/test/nvmf/common.sh index 29499418e4..5b0de57af1 100644 --- a/test/nvmf/common.sh +++ b/test/nvmf/common.sh @@ -178,13 +178,7 @@ function get_available_rdma_ips() { } function get_rdma_if_list() { - for nic_type in /sys/class/infiniband/*; do - [[ -e "$nic_type" ]] || break - for nic_name in /sys/class/infiniband/"$(basename ${nic_type})"/device/net/*; do - [[ -e "$nic_name" ]] || break - basename "$nic_name" - done - done + rxe_cfg rxe-net } function get_ip_address() {