IB/uverbs: Add ib_ucontext to uverbs_attr_bundle sent from ioctl and cmd flows
authorShamir Rabinovitch <shamir.rabinovitch@oracle.com>
Thu, 7 Feb 2019 16:44:47 +0000 (18:44 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 15 Feb 2019 18:16:21 +0000 (11:16 -0700)
commit3d9dfd060391928bd615db62ecddea5e1255edfd
tree0784bbace18b2640ac0da56097b90e8a3f7eedf6
parent0dd9ce18b9f315878894351595a53dd81fdd8598
IB/uverbs: Add ib_ucontext to uverbs_attr_bundle sent from ioctl and cmd flows

Add ib_ucontext to the uverbs_attr_bundle sent down the iocl and cmd flows
as soon as the flow has ib_uobject.

In addition, remove rdma_get_ucontext helper function that is only used by
ib_umem_get.

Signed-off-by: Shamir Rabinovitch <shamir.rabinovitch@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/rdma_core.c
drivers/infiniband/core/umem.c
drivers/infiniband/core/uverbs_cmd.c
drivers/infiniband/core/uverbs_ioctl.c
drivers/infiniband/core/uverbs_main.c
include/rdma/ib_verbs.h
include/rdma/uverbs_ioctl.h
include/rdma/uverbs_std_types.h