diff options
author | Roland Dreier <rolandd@cisco.com> | 2005-09-09 20:04:21 +0000 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-11-09 11:35:57 -0800 |
commit | c5407458ade2c59a9a3046b18b5689a3edab58b3 (patch) | |
tree | e4935a22780a608d9fa5928984f75033a260359e | |
parent | 913998dda85c22051c08b30822e04bd1026226a4 (diff) | |
download | libibverbs-c5407458ade2c59a9a3046b18b5689a3edab58b3.tar.gz |
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 <rolandd@cisco.com>
-rw-r--r-- | include/infiniband/kern-abi.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 { |