Skip to content

Commit

Permalink
providers/irdma: Report correct WC errors
Browse files Browse the repository at this point in the history
[ Upstream commit 7f9761e ]

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 <tatyana.e.nikolova@intel.com>
Signed-off-by: Sindhu-Devale <sindhu.devale@intel.com>
Signed-off-by: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
  • Loading branch information
Sindhu-Devale authored and nmorey committed Sep 21, 2022
1 parent d8e6420 commit f06a8fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions providers/irdma/user.h
Expand Up @@ -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 {
Expand Down
2 changes: 2 additions & 0 deletions providers/irdma/uverbs.c
Expand Up @@ -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;
Expand Down

0 comments on commit f06a8fb

Please sign in to comment.