aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/sw/rxe/rxe_verbs.h
diff options
context:
space:
mode:
authorBob Pearson <rpearsonhpe@gmail.com>2022-04-20 20:40:40 -0500
committerJason Gunthorpe <jgg@nvidia.com>2022-05-09 09:03:45 -0300
commit4703b4f0d94a5f887297713a2f6c2916a1ef08fd (patch)
tree1f616e7e7d7ef783fec2638b878fdf9a83a351f1 /drivers/infiniband/sw/rxe/rxe_verbs.h
parentRDMA/rxe: Move mw cleanup code to rxe_mw_cleanup() (diff)
downloadlinux-dev-4703b4f0d94a5f887297713a2f6c2916a1ef08fd.tar.xz
linux-dev-4703b4f0d94a5f887297713a2f6c2916a1ef08fd.zip
RDMA/rxe: Enforce IBA C11-17
Add a counter to keep track of the number of WQs connected to a CQ and return an error if destroy_cq() is called while the counter is non zero. Link: https://lore.kernel.org/r/20220421014042.26985-8-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/sw/rxe/rxe_verbs.h b/drivers/infiniband/sw/rxe/rxe_verbs.h
index 86068d70cd95..ac464e68c923 100644
--- a/drivers/infiniband/sw/rxe/rxe_verbs.h
+++ b/drivers/infiniband/sw/rxe/rxe_verbs.h
@@ -67,6 +67,7 @@ struct rxe_cq {
bool is_dying;
bool is_user;
struct tasklet_struct comp_task;
+ atomic_t num_wq;
};
enum wqe_state {