RDMA/rxe: Move code to check if drained to subroutine
authorBob Pearson <rpearsonhpe@gmail.com>
Wed, 5 Apr 2023 04:26:10 +0000 (23:26 -0500)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 17 Apr 2023 19:01:44 +0000 (16:01 -0300)
commit7b560b89a08d35c23dfc95dc44aee10651c8b9a0
treeea3a8b32410bafaa2d2b5d62dad9ad0815fb4d79
parent98e891b5e4d94ceb0844de3355c9218027426e72
RDMA/rxe: Move code to check if drained to subroutine

Move two blocks of code in rxe_comp.c and rxe_req.c to subroutines that
check if draining is complete in the SQD state and, if so, generate a
SQ_DRAINED event.

Link: https://lore.kernel.org/r/20230405042611.6467-4-rpearsonhpe@gmail.com
Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe_comp.c
drivers/infiniband/sw/rxe/rxe_req.c