Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3bf4fb82 authored by Roland Dreier's avatar Roland Dreier Committed by Linus Torvalds
Browse files

[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: default avatarRoland Dreier <roland@topspin.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 561e148e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;