[ofa-general] [PATCH] osm: QoS - fixing access to ServiceID field of MultiPathRecord

Yevgeny Kliteynik kliteyn at dev.mellanox.co.il
Tue Sep 4 13:18:18 PDT 2007


Signed-off-by: Yevgeny Kliteynik <kliteyn at dev.mellanox.co.il>
---
 opensm/include/iba/ib_types.h |    2 +-
 opensm/opensm/osm_helper.c    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/opensm/include/iba/ib_types.h b/opensm/include/iba/ib_types.h
index 13e2f38..0969755 100644
--- a/opensm/include/iba/ib_types.h
+++ b/opensm/include/iba/ib_types.h
@@ -6299,7 +6299,7 @@ ib_multipath_rec_pkt_life_sel(IN const ib_multipath_rec_t * const p_rec)
 *
 * SYNOPSIS
 */
-static inline uint64_t OSM_API
+static inline ib_net64_t OSM_API
 ib_multipath_rec_service_id(IN const ib_multipath_rec_t * const p_rec)
 {
 	union {
diff --git a/opensm/opensm/osm_helper.c b/opensm/opensm/osm_helper.c
index cf8cfab..b765e19 100644
--- a/opensm/opensm/osm_helper.c
+++ b/opensm/opensm/osm_helper.c
@@ -1153,7 +1153,7 @@ osm_dump_multipath_record(IN osm_log_t * const p_log,
 			p_mpr->pkt_life,
 			p_mpr->independence,
 			p_mpr->sgid_count, p_mpr->dgid_count,
-			ib_multipath_rec_service_id(p_mpr),
+			cl_ntoh64(ib_multipath_rec_service_id(p_mpr)),
 			buf_line);
 	}
 }
-- 
1.5.1.4




More information about the general mailing list