]> www.infradead.org Git - users/hch/blktests.git/commitdiff
tests/srp/rc: Consider all network interfaces
authorBart Van Assche <bvanassche@acm.org>
Fri, 22 Feb 2019 22:21:10 +0000 (14:21 -0800)
committerBart Van Assche <bvanassche@acm.org>
Fri, 22 Feb 2019 23:17:03 +0000 (15:17 -0800)
Instead of giving up if a login attempt fails, try all network interfaces.
This patch ensures that login succeeds if the first network interface that
is encountered is down and another network interface is up.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
tests/srp/rc

index 1b595370c648f40e52528691fee3b73fd8dcb89d..bf906de0833e27b85c0c9b67adabe669cba621df 100755 (executable)
@@ -212,7 +212,7 @@ log_in() {
                                                do_rdma_cm_login "$ioc_guid" "$ibdev" "$add_param";;
                                *)
                                        do_rdma_cm_login "$ioc_guid" "$ibdev" "$add_param";;
-                       esac || break
+                       esac
                done
 
                for p in /sys/class/scsi_host/*/orig_dgid; do