]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
RDMA/mlx4: Fix uABI structure layouts for 32/64 compat
authorJason Gunthorpe <jgg@mellanox.com>
Tue, 20 Mar 2018 20:19:49 +0000 (14:19 -0600)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 27 Mar 2018 20:25:09 +0000 (14:25 -0600)
commit366380a0c835b742da64ae2f800c65fa87692683
tree4f3c71a0fea4f11d656a6e77a95d496871c017bb
parent71e80a4781afbc4b1130b88109ddd8850201c78a
RDMA/mlx4: Fix uABI structure layouts for 32/64 compat

rss_caps in struct mlx4_uverbs_ex_query_device_resp is misaligned on
32 bit compared to 64 bit, add explicit padding.

The rss caps were introduced recently and are very rarely used in user
space, mainly for DPDK.

We don't expect there to be a real 32 bit user, so this change is done
without compat considerations.

Fixes: 09d208b258a2 ("IB/mlx4: Add report for RSS capabilities by vendor channel")
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
include/uapi/rdma/mlx4-abi.h