IB/uverbs: Add an ib_uobject getter to ioctl() infrastructure
authorMatan Barak <matanb@mellanox.com>
Thu, 31 May 2018 13:43:28 +0000 (16:43 +0300)
committerLeon Romanovsky <leonro@mellanox.com>
Sat, 2 Jun 2018 04:33:53 +0000 (07:33 +0300)
commit3efa38125b81fb4eb7dbb43295cb82a203dc0398
treeb70ce7fe0a8d71a80fb8483ffc2447a5a530c0c8
parent5f9bf63ae80c4d0e5e986b6c1280bf8174978545
IB/uverbs: Add an ib_uobject getter to ioctl() infrastructure

Previously, the user had to dig inside the attribute to get the uobject.
Add a helper function that correctly extract it (and do the required
checks) for him/her.

Signed-off-by: Matan Barak <matanb@mellanox.com>
Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/uverbs_std_types_cq.c
drivers/infiniband/core/uverbs_std_types_flow_action.c
include/rdma/uverbs_ioctl.h