RDMA/rxe: Simplify cq->notify code
authorBob Pearson <rpearsonhpe@gmail.com>
Mon, 12 Jun 2023 16:22:45 +0000 (11:22 -0500)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 20 Jun 2023 15:46:18 +0000 (12:46 -0300)
commit350b6dd4b2f876f1aa0d45a422b17b8377517762
tree073763566534715dd12e9e71556bce20ec476d0c
parentee678e5dffc0b0d63b4a2ec6129063339435bfc5
RDMA/rxe: Simplify cq->notify code

The flags parameter to the request notify verb is a bitmask. But, rxe
driver treats cq->notify as an int. If someone ever set both the
IB_CQ_SOLICITED and the IB_CQ_NEXT_COMP bits rxe_cq_post could fail to
generate a completion event. This patch treats the notify flags as a bit
mask consistently and can handle the above case correctly.

Link: https://lore.kernel.org/r/20230612162244.20038-1-rpearsonhpe@gmail.com
Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe_cq.c
drivers/infiniband/sw/rxe/rxe_verbs.c