diff mbox

[infiniband-diags] fix libibnetdisc portguid hashing corner case

Message ID 1271267283.17987.120.camel@auk31.llnl.gov (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Al Chu April 14, 2010, 5:48 p.m. UTC
None
diff mbox

Patch

diff --git a/infiniband-diags/libibnetdisc/src/ibnetdisc.c b/infiniband-diags/libibnetdisc/src/ibnetdisc.c
index c895de9..6010a28 100644
--- a/infiniband-diags/libibnetdisc/src/ibnetdisc.c
+++ b/infiniband-diags/libibnetdisc/src/ibnetdisc.c
@@ -173,6 +173,7 @@  static int recv_port_info(smp_engine_t * engine, ibnd_smp_t * smp,
 			IBND_ERROR("Failed to allocate port\n");
 			return -1;
 		}
+		port->guid = mad_get_field64(node->info, 0, IB_NODE_PORT_GUID_F);
 	}
 
 	memcpy(port->info, port_info, sizeof(port->info));