From b3dd8cf57c07055372f93aba508572274a59f7b5 Mon Sep 17 00:00:00 2001 From: Sindhu-Devale Date: Thu, 8 Sep 2022 17:39:40 -0400 Subject: providers/irdma: Report correct WC errors [ Upstream commit 7f9761eb541413bf113a6ba841791bd5fd47872e ] Return specific WC errors for certain type of error events. In particular, Return IBV_WC_REM_INV_REQ_ERR for an invalid request related asynchronous event. Fixes: 14a0fc8 ("rdma-core/irdma: Implement device supported verb APIs") Signed-off-by: Tatyana Nikolova Signed-off-by: Sindhu-Devale Signed-off-by: Nicolas Morey-Chaisemartin --- providers/irdma/user.h | 1 + providers/irdma/uverbs.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/providers/irdma/user.h b/providers/irdma/user.h index 2506d48..f8bbc27 100644 --- a/providers/irdma/user.h +++ b/providers/irdma/user.h @@ -106,6 +106,7 @@ enum irdma_flush_opcode { FLUSH_FATAL_ERR, FLUSH_RETRY_EXC_ERR, FLUSH_MW_BIND_ERR, + FLUSH_REM_INV_REQ_ERR, }; enum irdma_cmpl_status { diff --git a/providers/irdma/uverbs.c b/providers/irdma/uverbs.c index c2b326d..1b36bca 100644 --- a/providers/irdma/uverbs.c +++ b/providers/irdma/uverbs.c @@ -560,6 +560,8 @@ static enum ibv_wc_status irdma_flush_err_to_ib_wc_status(enum irdma_flush_opcod return IBV_WC_RETRY_EXC_ERR; case FLUSH_MW_BIND_ERR: return IBV_WC_MW_BIND_ERR; + case FLUSH_REM_INV_REQ_ERR: + return IBV_WC_REM_INV_REQ_ERR; case FLUSH_FATAL_ERR: default: return IBV_WC_FATAL_ERR; -- 2.34.1