diff options
author | Bob Pearson <rpearsonhpe@gmail.com> | 2021-06-07 23:25:47 -0500 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2021-06-16 20:51:17 -0300 |
commit | beec0239c3fae5828cc2f4b8869d75d8b3e82ee7 (patch) | |
tree | 29e260575c816a1b37afaf189a6b5310d94425e2 /drivers/infiniband/sw/rxe/rxe_verbs.h | |
parent | RDMA/rxe: Enable MW object pool (diff) | |
download | linux-dev-beec0239c3fae5828cc2f4b8869d75d8b3e82ee7.tar.xz linux-dev-beec0239c3fae5828cc2f4b8869d75d8b3e82ee7.zip |
RDMA/rxe: Add ib_alloc_mw and ib_dealloc_mw verbs
Add ib_alloc_mw and ib_dealloc_mw verbs APIs.
Added new file rxe_mw.c focused on MWs. Changed the 8 bit random key
generator. Added a cleanup routine for MWs. Added verbs routines to
ib_device_ops.
Link: https://lore.kernel.org/r/20210608042552.33275-5-rpearsonhpe@gmail.com
Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/infiniband/sw/rxe/rxe_verbs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/sw/rxe/rxe_verbs.h b/drivers/infiniband/sw/rxe/rxe_verbs.h index 207bbd5014e9..5effb12d22cc 100644 --- a/drivers/infiniband/sw/rxe/rxe_verbs.h +++ b/drivers/infiniband/sw/rxe/rxe_verbs.h @@ -326,6 +326,8 @@ enum rxe_mw_state { struct rxe_mw { struct ib_mw ibmw; struct rxe_pool_entry pelem; + spinlock_t lock; + enum rxe_mw_state state; }; struct rxe_mc_grp { |