IB/{hw,sw}: Remove 'uobject->context' dependency in object creation APIs

Now when we have the udata passed to all the ib_xxx object creation APIs
and the additional macro 'rdma_udata_to_drv_context' to get the
ib_ucontext from ib_udata stored in uverbs_attr_bundle, we can finally
start to remove the dependency of the drivers in the
ib_xxx->uobject->context.

Signed-off-by: Shamir Rabinovitch <shamir.rabinovitch@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:
Shamir Rabinovitch
2019-02-07 18:44:49 +02:00
committed by Jason Gunthorpe
parent 730623f4a5
commit 8994445054
23 changed files with 194 additions and 155 deletions
+5
View File
@@ -186,6 +186,11 @@ struct rvt_driver_params {
u8 reserved_operations;
};
/* User context */
struct rvt_ucontext {
struct ib_ucontext ibucontext;
};
/* Protection domain */
struct rvt_pd {
struct ib_pd ibpd;