From: leonidk Date: Wed, 23 Apr 2008 12:09:54 +0000 (+0000) Subject: [MLX4] fixes for eliminating possible alignment-related holes in ABI structures X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=7c61cda4aba8aa510c48790e7f54e088dbbdf6c6;p=~shefty%2Frdma-win.git [MLX4] fixes for eliminating possible alignment-related holes in ABI structures git-svn-id: svn://openib.tc.cornell.edu/gen1@1066 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- diff --git a/branches/ConnectX/hw/mlx4/inc/mx_abi.h b/branches/ConnectX/hw/mlx4/inc/mx_abi.h index dcab4be3..02ec7b6f 100644 --- a/branches/ConnectX/hw/mlx4/inc/mx_abi.h +++ b/branches/ConnectX/hw/mlx4/inc/mx_abi.h @@ -105,7 +105,7 @@ struct ibv_reg_mr_resp { struct ibv_create_cq { // struct ib_uverbs_create_cq - uint32_t cqe; + __declspec(align(8)) uint32_t cqe; uint32_t reserved; struct mlx4_ib_create_cq; }; diff --git a/branches/ConnectX/hw/mlx4/inc/user.h b/branches/ConnectX/hw/mlx4/inc/user.h index f6337409..a6220990 100644 --- a/branches/ConnectX/hw/mlx4/inc/user.h +++ b/branches/ConnectX/hw/mlx4/inc/user.h @@ -66,7 +66,6 @@ struct mlx4_ib_create_cq { struct mlx4_ib_create_cq_resp { __u32 cqn; - __u32 reserved; }; struct mlx4_ib_resize_cq {