test/nvmf: Use rxe_cfg to get rxe-enabled net devices

Signed-off-by: Michal Berger <michalx.berger@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6994 (master)

(cherry picked from commit c09b139e61)
Change-Id: Iafc067f880525f25363db1adf9a94a9fc9215455
Signed-off-by: Krzysztof Karas <krzysztof.karas@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7747
Tested-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Michal Berger 2021-03-22 14:00:48 +01:00 committed by Tomasz Zawadzki
parent 0896f85b59
commit a5b0bc0cd8
2 changed files with 4 additions and 7 deletions

View File

@ -300,6 +300,9 @@ case "${1:-status}" in
)
status | grep -E "${match:-.}"
;;
rxe-net)
printf '%s\n' "${rxe_to_net[@]}"
;;
*)
printf 'Invalid argument (%s)\n' "$1"
;;

View File

@ -159,13 +159,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() {