RDMA/rxe: Cleanup reset state handling in rxe_resp.c
authorBob Pearson <rpearsonhpe@gmail.com>
Sat, 4 Mar 2023 17:45:29 +0000 (11:45 -0600)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 24 Mar 2023 14:21:36 +0000 (11:21 -0300)
commit49dc9c1f0c7e396654a31a480328fffd902fa494
tree5f2db15b77e7f8b150756b0bae7a3b0e26eb529a
parent3946fc2a42b18cf0b675121158a2625825ce27b5
RDMA/rxe: Cleanup reset state handling in rxe_resp.c

Cleanup the handling of qp in the error state, reset state and during
rxe_qp_do_cleanup. The error state does about the same thing as the others
but has code spread all over.

This patch combines them in a cleaner way.

Link: https://lore.kernel.org/r/20230304174533.11296-4-rpearsonhpe@gmail.com
Signed-off-by: Ian Ziemba <ian.ziemba@hpe.com>
Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe.h
drivers/infiniband/sw/rxe/rxe_resp.c