From patchwork Mon Feb 25 16:30:10 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ira Weiny X-Patchwork-Id: 2181531 X-Patchwork-Delegate: hal@mellanox.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id AADD5DF230 for ; Mon, 25 Feb 2013 16:30:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751427Ab3BYQaM (ORCPT ); Mon, 25 Feb 2013 11:30:12 -0500 Received: from prdiron-1.llnl.gov ([128.15.143.171]:44745 "EHLO prdiron-1.llnl.gov" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750963Ab3BYQaL (ORCPT ); Mon, 25 Feb 2013 11:30:11 -0500 X-Attachments: Received: from eris.llnl.gov (HELO trebuchet.chaos) ([128.115.7.7]) by prdiron-1.llnl.gov with SMTP; 25 Feb 2013 08:30:10 -0800 Date: Mon, 25 Feb 2013 08:30:10 -0800 From: Ira Weiny To: Hal Rosenstock Cc: "linux-rdma@vger.kernel.org" Subject: [PATCH] opensm: make osm_get_path_params public Message-Id: <20130225083010.b8fb512ac9a7a5289ce016c9@llnl.gov> X-Mailer: Sylpheed 3.3.0 (GTK+ 2.18.9; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Signed-off-by: Ira Weiny --- include/opensm/osm_sa.h | 21 +++++++++++++++++++++ opensm/osm_sa_multipath_record.c | 10 ---------- opensm/osm_sa_path_record.c | 9 --------- 3 files changed, 21 insertions(+), 19 deletions(-) diff --git a/include/opensm/osm_sa.h b/include/opensm/osm_sa.h index d9016ab..8393412 100644 --- a/include/opensm/osm_sa.h +++ b/include/opensm/osm_sa.h @@ -555,5 +555,26 @@ osm_mgrp_t *osm_mcmr_rcv_find_or_create_new_mgrp(IN osm_sa_t * sa, * *********/ +/** + * The following expose functionality of osm_sa_path_record.c for internal use + * by sub managers + */ +typedef struct osm_path_parms { + ib_net16_t pkey; + uint8_t mtu; + uint8_t rate; + uint8_t sl; + uint8_t pkt_life; + boolean_t reversible; + int hops; +} osm_path_parms_t; + +ib_api_status_t osm_get_path_params(IN osm_sa_t * sa, + IN const osm_port_t * p_src_port, + IN const uint16_t slid_ho, + IN const osm_port_t * p_dest_port, + IN const uint16_t dlid_ho, + OUT osm_path_parms_t * p_parms); + END_C_DECLS #endif /* _OSM_SA_H_ */ diff --git a/opensm/osm_sa_multipath_record.c b/opensm/osm_sa_multipath_record.c index 8bb23e3..b4fc30f 100644 --- a/opensm/osm_sa_multipath_record.c +++ b/opensm/osm_sa_multipath_record.c @@ -68,16 +68,6 @@ #define SA_MPR_RESP_SIZE SA_ITEM_RESP_SIZE(mpr_rec) -typedef struct osm_path_parms { - ib_net16_t pkey; - uint8_t mtu; - uint8_t rate; - uint8_t sl; - uint8_t pkt_life; - boolean_t reversible; - int hops; -} osm_path_parms_t; - static boolean_t sa_multipath_rec_is_tavor_port(IN const osm_port_t * p_port) { osm_node_t const *p_node; diff --git a/opensm/osm_sa_path_record.c b/opensm/osm_sa_path_record.c index e6d4e49..c121dba 100644 --- a/opensm/osm_sa_path_record.c +++ b/opensm/osm_sa_path_record.c @@ -77,15 +77,6 @@ #define MAX_HOPS 64 -typedef struct osm_path_parms { - ib_net16_t pkey; - uint8_t mtu; - uint8_t rate; - uint8_t sl; - uint8_t pkt_life; - boolean_t reversible; -} osm_path_parms_t; - static inline boolean_t sa_path_rec_is_tavor_port(IN const osm_port_t * p_port) { osm_node_t const *p_node;