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:
parent
0896f85b59
commit
a5b0bc0cd8
@ -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"
|
||||
;;
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user