Skip to content

Commit

Permalink
[PATCH] IB: fix endianness of path record MTU field
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Roland Dreier authored and Linus Torvalds committed May 25, 2005
1 parent 561e148 commit 3bf4fb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/infiniband/include/ib_sa.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ struct ib_sa_path_rec {
/* reserved */
u8 sl;
u8 mtu_selector;
enum ib_mtu mtu;
u8 mtu;
u8 rate_selector;
u8 rate;
u8 packet_life_time_selector;
Expand Down Expand Up @@ -180,7 +180,7 @@ struct ib_sa_mcmember_rec {
u32 qkey;
u16 mlid;
u8 mtu_selector;
enum ib_mtu mtu;
u8 mtu;
u8 traffic_class;
u16 pkey;
u8 rate_selector;
Expand Down

0 comments on commit 3bf4fb8

Please sign in to comment.