aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/sw/rxe/rxe_verbs.h
diff options
context:
space:
mode:
authorBob Pearson <rpearsonhpe@gmail.com>2021-06-07 23:25:47 -0500
committerJason Gunthorpe <jgg@nvidia.com>2021-06-16 20:51:17 -0300
commitbeec0239c3fae5828cc2f4b8869d75d8b3e82ee7 (patch)
tree29e260575c816a1b37afaf189a6b5310d94425e2 /drivers/infiniband/sw/rxe/rxe_verbs.h
parentRDMA/rxe: Enable MW object pool (diff)
downloadlinux-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.h2
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 {