Skip to content

Commit

Permalink
providers/efa: Add new completion status for unknown peer
Browse files Browse the repository at this point in the history
EFA supports rdma operations only when a valid AH exists.
Add a new completion status for this remote error.

Reviewed-by: Michael Margolin <[email protected]>
Reviewed-by: Yonatan Nachum <[email protected]>
Signed-off-by: Daniel Kranzdorf <[email protected]>
Signed-off-by: Michael Margolin <[email protected]>
  • Loading branch information
dkkranz authored and mrgolin committed May 2, 2024
1 parent 18e88e8 commit b163249
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions providers/efa/efa_io_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ enum efa_io_comp_status {
EFA_IO_COMP_STATUS_REMOTE_ERROR_BAD_STATUS = 12,
/* Unresponsive remote - detected locally */
EFA_IO_COMP_STATUS_LOCAL_ERROR_UNRESP_REMOTE = 13,
/* No valid AH at remote side (required for RDMA operations) */
EFA_IO_COMP_STATUS_REMOTE_ERROR_UNKNOWN_PEER = 14,
};

struct efa_io_tx_meta_desc {
Expand Down
2 changes: 2 additions & 0 deletions providers/efa/verbs.c
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,8 @@ static enum ibv_wc_status to_ibv_status(enum efa_io_comp_status status)
return IBV_WC_RESP_TIMEOUT_ERR;
case EFA_IO_COMP_STATUS_REMOTE_ERROR_BAD_ADDRESS:
return IBV_WC_REM_ACCESS_ERR;
case EFA_IO_COMP_STATUS_REMOTE_ERROR_UNKNOWN_PEER:
return IBV_WC_REM_OP_ERR;
default:
return IBV_WC_GENERAL_ERR;
}
Expand Down

0 comments on commit b163249

Please sign in to comment.