[ofa-general] [PATCH] opensm/libvendor: use CL_HTON64() macro for constant conversion

Sasha Khapyorsky sashak at voltaire.com
Fri Feb 22 10:45:21 PST 2008


Use CL_HTON64() macro for constant conversion instead of cl_ntoh64()
function. Also it changes conversion "direction" since this value used in
network byte order.

Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
 opensm/libvendor/osm_vendor_ibumad.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/opensm/libvendor/osm_vendor_ibumad.c b/opensm/libvendor/osm_vendor_ibumad.c
index 679f06a..39c5fb3 100644
--- a/opensm/libvendor/osm_vendor_ibumad.c
+++ b/opensm/libvendor/osm_vendor_ibumad.c
@@ -128,7 +128,7 @@ Exit:
 static osm_madw_t *get_madw(osm_vendor_t * p_vend, ib_net64_t * tid)
 {
 	umad_match_t *m, *e;
-	ib_net64_t mtid = (*tid & cl_ntoh64(0x00000000ffffffffllu));
+	ib_net64_t mtid = (*tid & CL_HTON64(0x00000000ffffffffllu));
 	osm_madw_t *res;
 
 	/*
-- 
1.5.4.1.122.gaa8d




More information about the general mailing list