From patchwork Fri Apr 29 13:27:49 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 741031 X-Patchwork-Delegate: alexne@voltaire.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p3TDQl4W010898 for ; Fri, 29 Apr 2011 13:27:57 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752742Ab1D2N15 (ORCPT ); Fri, 29 Apr 2011 09:27:57 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:62837 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752114Ab1D2N14 (ORCPT ); Fri, 29 Apr 2011 09:27:56 -0400 Received: by mail-wy0-f174.google.com with SMTP id 21so2840843wya.19 for ; Fri, 29 Apr 2011 06:27:53 -0700 (PDT) Received: by 10.227.162.193 with SMTP id w1mr901803wbx.66.1304083673230; Fri, 29 Apr 2011 06:27:53 -0700 (PDT) Received: from [192.168.1.100] (c-71-192-10-85.hsd1.ma.comcast.net [71.192.10.85]) by mx.google.com with ESMTPS id p5sm1706326wbg.62.2011.04.29.06.27.51 (version=SSLv3 cipher=OTHER); Fri, 29 Apr 2011 06:27:52 -0700 (PDT) Message-ID: <4DBABCD5.4090000@dev.mellanox.co.il> Date: Fri, 29 Apr 2011 09:27:49 -0400 From: Hal Rosenstock User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: Alex Netes CC: "linux-rdma@vger.kernel.org" Subject: [PATCH 9/13] opensm/osm_sa_service_record.c: Alias GUID support 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.6 (demeter1.kernel.org [140.211.167.41]); Fri, 29 Apr 2011 13:27:57 +0000 (UTC) From c5bb9125bf1e0cc0a40f2152e67cfb719170cba4 Mon Sep 17 00:00:00 2001 From: Hal Rosenstock Date: Fri, 29 Apr 2011 00:03:29 +0300 Subject: [PATCH] opensm/osm_sa_service_record.c: Alias GUID support In match_service_pkey_with_ports_pkey, use alias rather than base port GUID list for service port determination Signed-off-by: Hal Rosenstock --- opensm/osm_sa_service_record.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/opensm/osm_sa_service_record.c b/opensm/osm_sa_service_record.c index ae002ad..830ef8f 100644 --- a/opensm/osm_sa_service_record.c +++ b/opensm/osm_sa_service_record.c @@ -113,7 +113,7 @@ match_service_pkey_with_ports_pkey(IN osm_sa_t * sa, service_guid = p_service_rec->service_gid.unicast.interface_id; service_port = - osm_get_port_by_guid(sa->p_subn, service_guid); + osm_get_port_by_alias_guid(sa->p_subn, service_guid); if (!service_port) { OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 2405: " "No port object for port 0x%016" PRIx64