]> bbs.cooldavid.org Git - net-next-2.6.git/commit
mlx4_core: Fix CQ context layout
authorEli Cohen <eli@mellanox.co.il>
Wed, 30 May 2007 10:14:31 +0000 (13:14 +0300)
committerRoland Dreier <rolandd@cisco.com>
Thu, 7 Jun 2007 18:51:57 +0000 (11:51 -0700)
commit09360d5408cb641abff0f32a172a3332f02e8e88
tree3f8b0671cf5bafa6b1f2924c63189aa9fe345ed3
parent7244d545c123ff33a3a5bff7fcb96a07778c32d1
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: Eli Cohen <eli@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/net/mlx4/cq.c