mirror of
https://github.com/Dasharo/linux.git
synced 2026-03-06 15:25:10 -08:00
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:
committed by
Jason Gunthorpe
parent
730623f4a5
commit
8994445054
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user