[ofa-general] [PATCH] opensm: fixing some data types in osm_req_get/set
Yevgeny Kliteynik
kliteyn at dev.mellanox.co.il
Thu Aug 20 06:07:16 PDT 2009
Hi Sasha,
Attribute ID and attribute modifier are used in osm_req_get/set
in network order - fixing data types.
Signed-off-by: Yevgeny Kliteynik <kliteyn at dev.mellanox.co.il>
---
opensm/include/opensm/osm_sm.h | 8 ++++----
opensm/opensm/osm_req.c | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/opensm/include/opensm/osm_sm.h b/opensm/include/opensm/osm_sm.h
index cc8321d..152ecd7 100644
--- a/opensm/include/opensm/osm_sm.h
+++ b/opensm/include/opensm/osm_sm.h
@@ -404,8 +404,8 @@ osm_sm_bind(IN osm_sm_t * const p_sm, IN const ib_net64_t port_guid);
ib_api_status_t
osm_req_get(IN osm_sm_t * sm,
IN const osm_dr_path_t * const p_path,
- IN const uint16_t attr_id,
- IN const uint32_t attr_mod,
+ IN const ib_net16_t attr_id,
+ IN const ib_net32_t attr_mod,
IN const cl_disp_msgid_t err_msg,
IN const osm_madw_context_t * const p_context);
/*
@@ -452,8 +452,8 @@ osm_req_set(IN osm_sm_t * sm,
IN const osm_dr_path_t * const p_path,
IN const uint8_t * const p_payload,
IN const size_t payload_size,
- IN const uint16_t attr_id,
- IN const uint32_t attr_mod,
+ IN const ib_net16_t attr_id,
+ IN const ib_net32_t attr_mod,
IN const cl_disp_msgid_t err_msg,
IN const osm_madw_context_t * const p_context);
/*
diff --git a/opensm/opensm/osm_req.c b/opensm/opensm/osm_req.c
index baeeed7..f79e3ab 100644
--- a/opensm/opensm/osm_req.c
+++ b/opensm/opensm/osm_req.c
@@ -62,8 +62,8 @@
**********************************************************************/
ib_api_status_t osm_req_get(IN osm_sm_t * sm,
IN const osm_dr_path_t * const p_path,
- IN const uint16_t attr_id,
- IN const uint32_t attr_mod,
+ IN const ib_net16_t attr_id,
+ IN const ib_net32_t attr_mod,
IN const cl_disp_msgid_t err_msg,
IN const osm_madw_context_t * const p_context)
{
@@ -134,8 +134,8 @@ ib_api_status_t osm_req_set(IN osm_sm_t * sm,
IN const osm_dr_path_t * const p_path,
IN const uint8_t * const p_payload,
IN const size_t payload_size,
- IN const uint16_t attr_id,
- IN const uint32_t attr_mod,
+ IN const ib_net16_t attr_id,
+ IN const ib_net32_t attr_mod,
IN const cl_disp_msgid_t err_msg,
IN const osm_madw_context_t * const p_context)
{
--
1.5.1.4
More information about the general
mailing list