From patchwork Tue Apr 13 12:49:51 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yevgeny Kliteynik X-Patchwork-Id: 92169 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 o3DCoFfm016502 for ; Tue, 13 Apr 2010 12:50:16 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750869Ab0DMMuO (ORCPT ); Tue, 13 Apr 2010 08:50:14 -0400 Received: from mail.mellanox.co.il ([194.90.237.43]:55618 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750776Ab0DMMuN (ORCPT ); Tue, 13 Apr 2010 08:50:13 -0400 Received: from Internal Mail-Server by MTLPINE1 (envelope-from kliteyn@dev.mellanox.co.il) with SMTP; 13 Apr 2010 15:50:07 +0300 Received: from [10.4.1.29] ([10.4.1.29]) by mtlexch01.mtl.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 13 Apr 2010 15:50:06 +0300 Message-ID: <4BC4686F.9080702@dev.mellanox.co.il> Date: Tue, 13 Apr 2010 15:49:51 +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] opensm/osm_sa_path_record.c: adding wrapper for pr_rcv_get_path_parms() X-OriginalArrivalTime: 13 Apr 2010 12:50:06.0612 (UTC) FILETIME=[D7D9F540:01CADB07] X-TM-AS-Product-Ver: SMEX-8.0.0.1181-6.000.1038-17316.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]); Tue, 13 Apr 2010 12:50:16 +0000 (UTC) diff --git a/opensm/opensm/osm_sa_path_record.c b/opensm/opensm/osm_sa_path_record.c index c4c3f86..b168428 100644 --- a/opensm/opensm/osm_sa_path_record.c +++ b/opensm/opensm/osm_sa_path_record.c @@ -743,6 +743,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,