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

Commit 09360d54 authored by Eli Cohen's avatar Eli Cohen Committed by Roland Dreier
Browse files

mlx4_core: Fix CQ context layout



The reserved6 field should be 64 bits, not just 16 bits.  Without
this, the structure does not match the hardware layout on 32-bit
architectures: the db_rec_addr field ends up at offset 52 instead of
offset 56.  The bug slipped by because the alignment of __be64 members
ends up putting it in the right place on x86-64.

Signed-off-by: default avatarEli Cohen <eli@mellanox.co.il>
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent 7244d545
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ struct mlx4_cq_context {
	__be32			solicit_producer_index;
	__be32			consumer_index;
	__be32			producer_index;
	u8			reserved6[2];
	u32			reserved6[2];
	__be64			db_rec_addr;
};