RDMA/rxe: Enforce IBA C11-17
authorBob Pearson <rpearsonhpe@gmail.com>
Thu, 21 Apr 2022 01:40:40 +0000 (20:40 -0500)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 9 May 2022 12:03:45 +0000 (09:03 -0300)
commit4703b4f0d94a5f887297713a2f6c2916a1ef08fd
tree1f616e7e7d7ef783fec2638b878fdf9a83a351f1
parentcde3f5d682279340a75b6ae90944b1c6bd3ae0d8
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>
drivers/infiniband/sw/rxe/rxe_qp.c
drivers/infiniband/sw/rxe/rxe_verbs.c
drivers/infiniband/sw/rxe/rxe_verbs.h