From c5407458ade2c59a9a3046b18b5689a3edab58b3 Mon Sep 17 00:00:00 2001 From: Roland Dreier Date: Fri, 9 Sep 2005 20:04:21 +0000 Subject: [PATCH] Make command structure sizes the same on 32-bit and 64-bit Add 4-byte reserved members to the new destroy CQ, destroy QP and destroy SRQ command structures so that they become a multiple of 8 bytes in size. This fixes the structures so they have the same size on both 32-bit and 64-bit architectures (which is required so that 32-bit userspace on a 64-bit kernel works correctly). Signed-off-by: Roland Dreier --- include/infiniband/kern-abi.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/infiniband/kern-abi.h b/include/infiniband/kern-abi.h index e89fcde..59a153d 100644 --- a/include/infiniband/kern-abi.h +++ b/include/infiniband/kern-abi.h @@ -332,6 +332,7 @@ struct ibv_destroy_cq { __u16 out_words; __u64 response; __u32 cq_handle; + __u32 reserved; }; struct ibv_destroy_cq_resp { @@ -427,6 +428,7 @@ struct ibv_destroy_qp { __u16 out_words; __u64 response; __u32 qp_handle; + __u32 reserved; }; struct ibv_destroy_qp_resp { @@ -498,6 +500,7 @@ struct ibv_destroy_srq { __u16 out_words; __u64 response; __u32 srq_handle; + __u32 reserved; }; struct ibv_destroy_srq_resp { -- 2.46.0