[PATCH] IB: fix endianness of path record MTU field
authorRoland Dreier <roland@topspin.com>
Wed, 25 May 2005 19:31:31 +0000 (12:31 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 25 May 2005 22:31:28 +0000 (15:31 -0700)
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>
drivers/infiniband/include/ib_sa.h

index f4f747707b30d462d2f5fcce2945ebac6ee9c938..00222285eb9a20ed0345784f3899fdbd8b5aa319 100644 (file)
@@ -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;
@@ -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;