RDMA/uverbs: Add missing driver_data
authorJason Gunthorpe <jgg@mellanox.com>
Sun, 25 Nov 2018 18:51:12 +0000 (20:51 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 26 Nov 2018 23:48:07 +0000 (16:48 -0700)
commit1b09577bef3ac135ed02115943c9ab53f2129555
treecbb802232a8378f3c22c54f45b169afaa1a54c74
parentd2c9d9abe117a470753283bf5884fea6f4af15d4
RDMA/uverbs: Add missing driver_data

If the struct is used with a driver_udata it should have a trailing
driver_data flex array to mark it as having udata.

In most cases this forces the end of the struct to be aligned to u64 which
is needed to make the trailing driver_data naturally aligned.

Unfortunately We have a few cases where the base struct is not aligned to
8 bytes, these are marked with a u32 driver_data and userspace will check
for alignment issues when it compiles the driver.

Also remove the empty ib_uverbs_modify_qp_resp as nothing uses this.

pahole says there is no change to any struct sizes by this change.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
include/uapi/rdma/ib_user_verbs.h