diff options
author | Bob Pearson <rpearsonhpe@gmail.com> | 2022-07-20 10:56:07 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2022-08-02 18:53:36 +0200 |
commit | 62494ec7fbca4d58900eb62e075f2fedc85b5fb9 (patch) | |
tree | b788f5759d837710cd2a8b25c5fca4de5ac0131c /drivers/infiniband/sw/rxe/rxe_verbs.h | |
parent | RDMA/rxe: Generate error completion for error requester QP state (diff) | |
download | linux-62494ec7fbca4d58900eb62e075f2fedc85b5fb9.tar.xz linux-62494ec7fbca4d58900eb62e075f2fedc85b5fb9.zip |
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>
Diffstat (limited to 'drivers/infiniband/sw/rxe/rxe_verbs.h')
-rw-r--r-- | drivers/infiniband/sw/rxe/rxe_verbs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/sw/rxe/rxe_verbs.h b/drivers/infiniband/sw/rxe/rxe_verbs.h index a24fbe984066..96af3e054f4d 100644 --- a/drivers/infiniband/sw/rxe/rxe_verbs.h +++ b/drivers/infiniband/sw/rxe/rxe_verbs.h @@ -129,6 +129,7 @@ struct rxe_req_info { }; struct rxe_comp_info { + enum rxe_qp_state state; u32 psn; int opcode; int timeout; |