From 530afde392e356ad2e7b6c46a7ecdb6d02eedd08 Mon Sep 17 00:00:00 2001 From: Shi Jin Date: Mon, 25 Nov 2024 18:11:07 +0000 Subject: [PATCH] prov/efa: Adjust the error code for flushed receive 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 --- prov/efa/src/efa_errno.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prov/efa/src/efa_errno.h b/prov/efa/src/efa_errno.h index 4a68fe2488e..029c35d4a07 100644 --- a/prov/efa/src/efa_errno.h +++ b/prov/efa/src/efa_errno.h @@ -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: