From 155e9c6a9a47607a86a9dcda95044b83caef22ff Mon Sep 17 00:00:00 2001 From: Yi Zhang Date: Thu, 30 Jun 2022 17:56:25 +0800 Subject: [PATCH] common/multipath-over-rdma: skip NO-CARRIER NIC when start_soft_rdma The rxe/siw driver will be bind to NO-CARRIER interface which lead nvmeof-mp/001 failed. For example, nvmeof-mp/001 with two NICs, if will output count_devices(): 1 <> 2 when the second NIC has NO-CARRIER Signed-off-by: Yi Zhang Reviewed-by: Bart Van Assche Signed-off-by: Shin'ichiro Kawasaki --- common/multipath-over-rdma | 1 + 1 file changed, 1 insertion(+) diff --git a/common/multipath-over-rdma b/common/multipath-over-rdma index 8edcf39..8ab3da1 100644 --- a/common/multipath-over-rdma +++ b/common/multipath-over-rdma @@ -409,6 +409,7 @@ start_soft_rdma() { [ -e "$i" ] || continue [ "$i" = "lo" ] && continue [ "$(<"$i/addr_len")" = 6 ] || continue + [ "$(<"$i/carrier")" = 1 ] || continue has_soft_rdma "$i" && continue rdma link add "${i}_$type" type $type netdev "$i" || echo "Failed to bind the $type driver to $i" -- 2.49.0