diff options
| author | Roland Dreier <roland@topspin.com> | 2005-05-25 15:31:31 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-25 18:31:28 -0400 |
| commit | 3bf4fb820d7382318d178bd765c20028415466ab (patch) | |
| tree | 1a0cbad2e1d661baa60162d3246e5b6c44b476d0 | |
| parent | 561e148ea972a6e8d2c8f7aecc658b3a64f7a6de (diff) | |
[PATCH] IB: fix endianness of path record MTU field
Make MTU field in SA PathRecord and MCMemberRecord a u8 rather than an enum
to avoid complications with endianness.
Signed-off-by: Roland Dreier <roland@topspin.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
| -rw-r--r-- | drivers/infiniband/include/ib_sa.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/include/ib_sa.h b/drivers/infiniband/include/ib_sa.h index f4f747707b30..00222285eb9a 100644 --- a/drivers/infiniband/include/ib_sa.h +++ b/drivers/infiniband/include/ib_sa.h | |||
| @@ -147,7 +147,7 @@ struct ib_sa_path_rec { | |||
| 147 | /* reserved */ | 147 | /* reserved */ |
| 148 | u8 sl; | 148 | u8 sl; |
| 149 | u8 mtu_selector; | 149 | u8 mtu_selector; |
| 150 | enum ib_mtu mtu; | 150 | u8 mtu; |
| 151 | u8 rate_selector; | 151 | u8 rate_selector; |
| 152 | u8 rate; | 152 | u8 rate; |
| 153 | u8 packet_life_time_selector; | 153 | u8 packet_life_time_selector; |
| @@ -180,7 +180,7 @@ struct ib_sa_mcmember_rec { | |||
| 180 | u32 qkey; | 180 | u32 qkey; |
| 181 | u16 mlid; | 181 | u16 mlid; |
| 182 | u8 mtu_selector; | 182 | u8 mtu_selector; |
| 183 | enum ib_mtu mtu; | 183 | u8 mtu; |
| 184 | u8 traffic_class; | 184 | u8 traffic_class; |
| 185 | u16 pkey; | 185 | u16 pkey; |
| 186 | u8 rate_selector; | 186 | u8 rate_selector; |
