]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1fcfb45d1e976ab6395d681313c0bfcc3aeb79fc
treeb70ce7fe0a8d71a80fb8483ffc2447a5a530c0c8
parentd1933ff2a341a0a997ef585076ed5aadaed65d96
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