aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/rdma/mlx5-abi.h
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@mellanox.com>2018-04-03 10:00:53 +0300
committerJason Gunthorpe <jgg@mellanox.com>2018-04-03 13:38:40 -0600
commit41d902cb7c326d711674977763c4b30df87611bc (patch)
tree6b06a97116a8a1bb4a94053f248bc4d93e7c0c27 /include/uapi/rdma/mlx5-abi.h
parentIB/ocrdma_hw: Remove redundant checks and goto labels (diff)
downloadlinux-dev-41d902cb7c326d711674977763c4b30df87611bc.tar.xz
linux-dev-41d902cb7c326d711674977763c4b30df87611bc.zip
RDMA/mlx5: Fix definition of mlx5_ib_create_qp_resp
This structure is pushed down the ex and the non-ex path, so it needs to be aligned to 8 bytes to go through ex without implicit padding. Old user space will provide 4 bytes of resp on !ex and 8 bytes on ex, so take the approach of just copying the minimum length. New user space will consistently provide 8 bytes in both cases. Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to '')
-rw-r--r--include/uapi/rdma/mlx5-abi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/rdma/mlx5-abi.h b/include/uapi/rdma/mlx5-abi.h
index 09c50f390a3c..f7d18fb01771 100644
--- a/include/uapi/rdma/mlx5-abi.h
+++ b/include/uapi/rdma/mlx5-abi.h
@@ -335,6 +335,7 @@ struct mlx5_ib_create_qp_rss {
struct mlx5_ib_create_qp_resp {
__u32 bfreg_index;
+ __u32 reserved;
};
struct mlx5_ib_alloc_mw {