From patchwork Wed Apr 14 17:48:03 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Al Chu X-Patchwork-Id: 92451 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o3EHm8ZK018052 for ; Wed, 14 Apr 2010 17:48:08 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756616Ab0DNRsH (ORCPT ); Wed, 14 Apr 2010 13:48:07 -0400 Received: from nspiron-2.llnl.gov ([128.115.41.82]:1305 "EHLO nspiron-2.llnl.gov" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756615Ab0DNRsG (ORCPT ); Wed, 14 Apr 2010 13:48:06 -0400 X-Attachments: 0001-fix-libibnetdisc-portguid-hashing-corner-case.patch Received: from auk31.llnl.gov (HELO [134.9.93.159]) ([134.9.93.159]) by nspiron-2.llnl.gov with ESMTP; 14 Apr 2010 10:48:03 -0700 Subject: [infiniband-diags] fix libibnetdisc portguid hashing corner case From: Al Chu To: Sasha Khapyorsky Cc: "linux-rdma@vger.kernel.org" Date: Wed, 14 Apr 2010 10:48:03 -0700 Message-Id: <1271267283.17987.120.camel@auk31.llnl.gov> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 (2.12.3-19.el5) Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 14 Apr 2010 17:48:08 +0000 (UTC) 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));