[PATCH blktests] common/multipath-over-rdma: skip NO-CARRIER NIC when start_soft_rdma

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <yi.zhang@xxxxxxxxxx>
---
 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.34.1




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux