Skip to content

Commit

Permalink
Merge pull request #7134 from dmitrygx/topic/uct/verbs_err_handle
Browse files Browse the repository at this point in the history
UCT/IB/RC/VERBS: Align WC error status with MLX5 error handling
  • Loading branch information
dmitrygx authored Jul 22, 2021
2 parents 0456074 + 0a3e7a7 commit 99748da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/uct/ib/rc/verbs/rc_verbs_iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,18 @@ static void uct_rc_verbs_handle_failure(uct_ib_iface_t *ib_iface, void *arg,
wc->wr_id, wc->vendor_err, peer_info);
}

ucs_status_t uct_rc_verbs_wc_to_ucs_status(enum ibv_wc_status status)
static ucs_status_t uct_rc_verbs_wc_to_ucs_status(enum ibv_wc_status status)
{
switch (status)
{
case IBV_WC_SUCCESS:
return UCS_OK;
case IBV_WC_REM_ACCESS_ERR:
case IBV_WC_REM_OP_ERR:
return UCS_ERR_CONNECTION_RESET;
case IBV_WC_RETRY_EXC_ERR:
case IBV_WC_RNR_RETRY_EXC_ERR:
case IBV_WC_REM_ABORT_ERR:
return UCS_ERR_ENDPOINT_TIMEOUT;
case IBV_WC_WR_FLUSH_ERR:
return UCS_ERR_CANCELED;
Expand Down
1 change: 0 additions & 1 deletion src/uct/ib/rc/verbs/rc_verbs_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include <uct/ib/rc/base/rc_iface.h>
#include <uct/ib/rc/base/rc_ep.h>

ucs_status_t uct_rc_verbs_wc_to_ucs_status(enum ibv_wc_status status);

static inline void
uct_rc_verbs_txqp_posted(uct_rc_txqp_t *txqp, uct_rc_verbs_txcnt_t *txcnt,
Expand Down

0 comments on commit 99748da

Please sign in to comment.