From c0021d08ce0898b48f9c519a59514771fee455c2 Mon Sep 17 00:00:00 2001 From: Pawel Wodkowski Date: Thu, 15 Feb 2018 14:39:47 +0100 Subject: [PATCH] test/nvmf: don't use SoftRoCE with bridges Bridges are not working with SoftRoCE. Change-Id: I4c600efb3b7bf85386658fd050cd2755dfc542b4 Signed-off-by: Karol Latecki Signed-off-by: Pawel Wodkowski Reviewed-on: https://review.gerrithub.io/400009 Tested-by: SPDK Automated Test System Reviewed-by: Daniel Verkamp Reviewed-by: Jim Harris --- test/nvmf/common.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/nvmf/common.sh b/test/nvmf/common.sh index ff087fc61..cc108b366 100755 --- a/test/nvmf/common.sh +++ b/test/nvmf/common.sh @@ -38,6 +38,9 @@ function detect_soft_roce_nics() all_nics=("${all_nics[@]/"Iface"}") non_rdma_nics=$(echo "$rdma_nics $all_nics" | sort | uniq -u) for nic in $non_rdma_nics; do + if [[ -d /sys/class/net/${nic}/bridge ]]; then + continue + fi rxe_cfg add $nic || true done fi