Skip to content

Commit

Permalink
prov/efa: Adjust the error code for flushed receive
Browse files Browse the repository at this point in the history
Currently, efa provider propagate flushed qp error
as FI_EHOSTDOWN, which is wrong as flushed QP error
means the completions are canceled due to QP was
aborted earlier. Using FI_ECANCELED is more reasonable
here.

Signed-off-by: Shi Jin <[email protected]>
  • Loading branch information
shijin-aws committed Nov 25, 2024
1 parent 1af9ddc commit 530afde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prov/efa/src/efa_errno.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ static inline int to_fi_errno(enum efa_errno err) {
case EFA_IO_COMP_STATUS_OK:
return FI_SUCCESS;
case EFA_IO_COMP_STATUS_FLUSHED:
return FI_EHOSTDOWN;
return FI_ECANCELED;
case EFA_IO_COMP_STATUS_LOCAL_ERROR_QP_INTERNAL_ERROR:
case EFA_IO_COMP_STATUS_LOCAL_ERROR_INVALID_AH:
case EFA_IO_COMP_STATUS_LOCAL_ERROR_INVALID_LKEY:
Expand Down

0 comments on commit 530afde

Please sign in to comment.