@@ -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_ */
@@ -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;
@@ -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;
Signed-off-by: Ira Weiny <weiny2@llnl.gov> --- 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(-)