aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/include/ib_verbs.h
diff options
context:
space:
mode:
authorSean Hefty <sean.hefty@intel.com>2005-08-14 00:05:57 -0400
committerRoland Dreier <rolandd@cisco.com>2005-08-26 23:37:35 -0400
commit97f52eb438be7caebe026421545619d8a0c1398a (patch)
tree1085acb833b691e9cc7ef607e4b4ac8cbd81e03f /drivers/infiniband/include/ib_verbs.h
parent92a6b34bf4d0d11c54b2a6bdd6240f98cb326200 (diff)
[PATCH] IB: sparse endianness cleanup
Fix sparse warnings. Use __be* where appropriate. Signed-off-by: Sean Hefty <sean.hefty@intel.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/include/ib_verbs.h')
-rw-r--r--drivers/infiniband/include/ib_verbs.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/infiniband/include/ib_verbs.h b/drivers/infiniband/include/ib_verbs.h
index 8d5ea9568337..042a7d11fbcc 100644
--- a/drivers/infiniband/include/ib_verbs.h
+++ b/drivers/infiniband/include/ib_verbs.h
@@ -51,8 +51,8 @@
51union ib_gid { 51union ib_gid {
52 u8 raw[16]; 52 u8 raw[16];
53 struct { 53 struct {
54 u64 subnet_prefix; 54 __be64 subnet_prefix;
55 u64 interface_id; 55 __be64 interface_id;
56 } global; 56 } global;
57}; 57};
58 58
@@ -88,8 +88,8 @@ enum ib_atomic_cap {
88 88
89struct ib_device_attr { 89struct ib_device_attr {
90 u64 fw_ver; 90 u64 fw_ver;
91 u64 node_guid; 91 __be64 node_guid;
92 u64 sys_image_guid; 92 __be64 sys_image_guid;
93 u64 max_mr_size; 93 u64 max_mr_size;
94 u64 page_size_cap; 94 u64 page_size_cap;
95 u32 vendor_id; 95 u32 vendor_id;
@@ -291,8 +291,8 @@ struct ib_global_route {
291}; 291};
292 292
293struct ib_grh { 293struct ib_grh {
294 u32 version_tclass_flow; 294 __be32 version_tclass_flow;
295 u16 paylen; 295 __be16 paylen;
296 u8 next_hdr; 296 u8 next_hdr;
297 u8 hop_limit; 297 u8 hop_limit;
298 union ib_gid sgid; 298 union ib_gid sgid;
@@ -303,6 +303,8 @@ enum {
303 IB_MULTICAST_QPN = 0xffffff 303 IB_MULTICAST_QPN = 0xffffff
304}; 304};
305 305
306#define IB_LID_PERMISSIVE __constant_htons(0xFFFF)
307
306enum ib_ah_flags { 308enum ib_ah_flags {
307 IB_AH_GRH = 1 309 IB_AH_GRH = 1
308}; 310};