[openib-general] [PATCH] diags: fix loops handling in ibnetdiscover

Sasha Khapyorsky sashak at voltaire.com
Wed Dec 27 15:09:15 PST 2006


This fixes loop cabling and loopback connections handling in
ibnetdiscover.

Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
 diags/src/ibnetdiscover.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/diags/src/ibnetdiscover.c b/diags/src/ibnetdiscover.c
index 71f6b83..31b7063 100644
--- a/diags/src/ibnetdiscover.c
+++ b/diags/src/ibnetdiscover.c
@@ -338,7 +338,7 @@ handle_port(Node *node, Port *port, ib_portid_t *path, int portnum, int dist)
 		free(remotenode);
 
 		/* Handle loopback plug */
-		if (port->portguid == remoteport->portguid) {
+		if (port->portnum == remoteport->portnum) {
 			free(remoteport);
 			remoteport = port;
 		}
-- 
1.4.4.2.gfc82d





More information about the general mailing list