From patchwork Thu Jun 10 13:49:19 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yevgeny Kliteynik X-Patchwork-Id: 105392 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 o5ADnaTw014433 for ; Thu, 10 Jun 2010 13:49:36 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755970Ab0FJNtf (ORCPT ); Thu, 10 Jun 2010 09:49:35 -0400 Received: from mail.mellanox.co.il ([194.90.237.43]:60300 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753013Ab0FJNtf (ORCPT ); Thu, 10 Jun 2010 09:49:35 -0400 Received: from Internal Mail-Server by MTLPINE1 (envelope-from kliteyn@dev.mellanox.co.il) with SMTP; 10 Jun 2010 16:50:21 +0300 Received: from [10.4.1.29] ([10.4.1.29]) by mtlexch01.mtl.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 10 Jun 2010 16:49:29 +0300 Message-ID: <4C10ED5F.9070205@dev.mellanox.co.il> Date: Thu, 10 Jun 2010 16:49:19 +0300 From: Yevgeny Kliteynik User-Agent: Thunderbird 1.5.0.5 (X11/20060719) MIME-Version: 1.0 To: Sasha Khapyorsky CC: Linux RDMA Subject: [PATCH resend] opensm/osm_sa_path_record.c: adding wrapper for pr_rcv_get_path_parms() X-OriginalArrivalTime: 10 Jun 2010 13:49:29.0734 (UTC) FILETIME=[BF98BA60:01CB08A3] X-TM-AS-Product-Ver: SMEX-8.0.0.1181-6.000.1038-17436.007 X-TM-AS-Result: No--0.195400-8.000000-31 X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No 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]); Thu, 10 Jun 2010 13:49:36 +0000 (UTC) diff --git a/opensm/opensm/osm_sa_path_record.c b/opensm/opensm/osm_sa_path_record.c index f0d7ca2..2897c7b 100644 --- a/opensm/opensm/osm_sa_path_record.c +++ b/opensm/opensm/osm_sa_path_record.c @@ -764,6 +764,18 @@ Exit: return status; } +ib_api_status_t osm_get_path_params(IN osm_sa_t * sa, + IN const osm_port_t * p_src_port, + IN const osm_port_t * p_dest_port, + IN const uint16_t dlid_ho, + OUT osm_path_parms_t * p_parms) +{ + ib_path_rec_t pr; + memset(&pr, 0, sizeof(ib_path_rec_t)); + return pr_rcv_get_path_parms(sa, &pr, + p_src_port, p_dest_port, dlid_ho, 0, p_parms); +} + static void pr_rcv_build_pr(IN osm_sa_t * sa, IN const osm_port_t * p_src_port, IN const osm_port_t * p_dest_port, IN const ib_gid_t * p_dgid,