[ofa-general] [PATCH] ibnetdiscover.c: continue processing other ports even if smpquery fails on one port

Ira Weiny weiny2 at llnl.gov
Fri Sep 5 15:47:16 PDT 2008


>From a08bca968a590bc041dabc733200469c78581d52 Mon Sep 17 00:00:00 2001
From: Ira Weiny <weiny2 at llnl.gov>
Date: Fri, 5 Sep 2008 15:40:17 -0700
Subject: [PATCH] ibnetdiscover.c: continue processing other ports even if smpquery fails on one
 port


Signed-off-by: Ira Weiny <weiny2 at llnl.gov>
---
 infiniband-diags/src/ibnetdiscover.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/infiniband-diags/src/ibnetdiscover.c b/infiniband-diags/src/ibnetdiscover.c
index 803c300..35e7118 100644
--- a/infiniband-diags/src/ibnetdiscover.c
+++ b/infiniband-diags/src/ibnetdiscover.c
@@ -424,7 +424,7 @@ discover(ib_portid_t *from)
 
 				if (get_port(&port_buf, i, path) < 0) {
 					IBWARN("can't reach node %s port %d", portid2str(path), i);
-					return 0;
+					continue;
 				}
 
 				port = find_port(node, &port_buf);
-- 
1.5.4.5




More information about the general mailing list