RDMA/rxe: Split qp state for requester and completer
authorBob Pearson <rpearsonhpe@gmail.com>
Wed, 20 Jul 2022 08:56:07 +0000 (04:56 -0400)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 2 Aug 2022 16:53:36 +0000 (13:53 -0300)
commit62494ec7fbca4d58900eb62e075f2fedc85b5fb9
treeb788f5759d837710cd2a8b25c5fca4de5ac0131c
parentae720bdb703b295fed4ded28e14dd06a534a3012
RDMA/rxe: Split qp state for requester and completer

Currently the requester can continue to process send wqes after an local
qp operation error is detected because the setting of the qp state to the
error state is deferred until later. This patch splits the qp state for
the completer and requester into two separate states and sets
qp->req.state = QP_STATE_ERROR as soon as the error is detected before
another wqe can be executed.

Link: https://lore.kernel.org/r/1658307368-1851-4-git-send-email-lizhijian@fujitsu.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_qp.c
drivers/infiniband/sw/rxe/rxe_req.c
drivers/infiniband/sw/rxe/rxe_verbs.h