[openib-general] [PATCH] srptools on FC4

Michael S. Tsirkin mst at mellanox.co.il
Wed Jan 18 07:26:05 PST 2006


----- Forwarded message from Yael Shenhav <yaeli at mellanox.co.il> -----
 
Roland,
I get errors when trying to compile ibsrpdm on FedoraCore4:
 
	In file included from src/srp-dm.c:41:
	src/ib_user_mad.h:80: error: syntax error before '__be32'
	src/ib_user_mad.h:80: warning: no semicolon at end of struct or union

etc.
 
On FC4, __be32 is not defined by userspace headers. 
I think you can use __u32 instead.

----- End forwarded message -----

Replace __beXX with __uXX for userspace code.

Signed-off-by: Yael Shenhav <yaeli at mellanox.co.il>
Signed-off-by: Michael S. Tsirkin <mst at mellanox.co.il>

Index: openib/src/userspace/srptools/src/ib_user_mad.h
===================================================================
--- openib/src/userspace/srptools/src/ib_user_mad.h
+++ openib/src/userspace/srptools/src/ib_user_mad.h
@@ -77,9 +77,9 @@ struct ib_user_mad_hdr {
 	__u32	timeout_ms;
 	__u32	retries;
 	__u32	length;
-	__be32	qpn;
-	__be32  qkey;
-	__be16	lid;
+	__u32	qpn;
+	__u32  	qkey;
+	__u16	lid;
 	__u8	sl;
 	__u8	path_bits;
 	__u8	grh_present;
@@ -87,7 +87,7 @@ struct ib_user_mad_hdr {
 	__u8	hop_limit;
 	__u8	traffic_class;
 	__u8	gid[16];
-	__be32	flow_label;
+	__u32	flow_label;
 };
 
 /**

-- 
MST



More information about the general mailing list