IB/core: Expose ib_ucontext from a given ib_uverbs_file
authorYishai Hadas <yishaih@mellanox.com>
Sun, 17 Jun 2018 09:59:59 +0000 (12:59 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 19 Jun 2018 16:53:02 +0000 (10:53 -0600)
commit7dc08dcfc8c86cb4457e383734ff6844ddaff876
treed7ca5c177c38c05e4ff48801f1a1d461f5b498d7
parente502a864c3526aa93b983d4b14e9615b3da430e6
IB/core: Expose ib_ucontext from a given ib_uverbs_file

Drivers that use the IOCTL API may have the ib_uverbs_file and need a
way to get the related ib_ucontext from it, this is enabled by this
patch.

Downstream patches from this series will use it.

Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/uverbs_main.c
include/rdma/ib_verbs.h