RDMA/mlx5: Fix definition of mlx5_ib_create_qp_resp
authorJason Gunthorpe <jgg@mellanox.com>
Tue, 3 Apr 2018 07:00:53 +0000 (10:00 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 3 Apr 2018 19:38:40 +0000 (13:38 -0600)
commit41d902cb7c326d711674977763c4b30df87611bc
tree6b06a97116a8a1bb4a94053f248bc4d93e7c0c27
parent689a8e31938d41ce75955a81936de4d62c2fc677
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>
drivers/infiniband/hw/mlx5/qp.c
include/uapi/rdma/mlx5-abi.h