]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
[MLX4] fixes for eliminating possible alignment-related holes in ABI structures
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 23 Apr 2008 12:09:54 +0000 (12:09 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 23 Apr 2008 12:09:54 +0000 (12:09 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1@1066 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

branches/ConnectX/hw/mlx4/inc/mx_abi.h
branches/ConnectX/hw/mlx4/inc/user.h

index dcab4be34ec9694074fb05c1fb3ed09615ca1738..02ec7b6f17e14a281abe541a70369cb3cb2c44f9 100644 (file)
@@ -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;
 };
index f6337409c980b737500f9776543837e153b0b083..a6220990396f49c1e4663374bb5f1f0c42c001f2 100644 (file)
@@ -66,7 +66,6 @@ struct mlx4_ib_create_cq {
 
 struct mlx4_ib_create_cq_resp {
        __u32   cqn;
-       __u32   reserved;
 };
 
 struct mlx4_ib_resize_cq {