From: Sindhu Devale <sindhu.devale@intel.com>
To: jgg@nvidia.com, leon@kernel.org, tatyana.e.nikolova@intel.com
Cc: linux-rdma@vger.kernel.org, shiraz.saleem@intel.com,
mustafa.ismail@intel.com, "Sindhu,
Devale" <sindhu.devale@intel.com>
Subject: [PATCH rdma-core 1/2] providers/irdma: Report correct WC errors
Date: Mon, 29 Nov 2021 16:54:45 -0600 [thread overview]
Message-ID: <20211129225446.691-2-sindhu.devale@intel.com> (raw)
In-Reply-To: <20211129225446.691-1-sindhu.devale@intel.com>
From: "Sindhu, Devale" <sindhu.devale@intel.com>
Return specific WC errors for certain type of error
events as opposed to a generic IBV_WC_FATAL_ERR.
In particular,
Return IBV_WC_MW_BIND_ERR for memory window
related asynchronous events.
Return IBV_WC_REM_INV_REQ_ERR for errors which is
detected when the remote side detects an operation
outside of the established use for the transport.
Return IBV_WC_RETRY_EXC_ERR when transport retry
counter is exceeded.
Fixes: 14a0fc824f16 ("rdma-core/irdma: Implement device supported verb APIs")
Signed-off-by: Sindhu, Devale <sindhu.devale@intel.com>
---
providers/irdma/uverbs.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/providers/irdma/uverbs.c b/providers/irdma/uverbs.c
index edd8821f..c8222d14 100644
--- a/providers/irdma/uverbs.c
+++ b/providers/irdma/uverbs.c
@@ -556,6 +556,12 @@ static enum ibv_wc_status irdma_flush_err_to_ib_wc_status(enum irdma_flush_opcod
return IBV_WC_LOC_LEN_ERR;
case FLUSH_GENERAL_ERR:
return IBV_WC_WR_FLUSH_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_RETRY_EXC_ERR:
+ return IBV_WC_RETRY_EXC_ERR;
case FLUSH_FATAL_ERR:
default:
return IBV_WC_FATAL_ERR;
--
2.32.0
next prev parent reply other threads:[~2021-11-29 22:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-29 22:54 [PATCH rdma-core 0/2] Validate input and fix return code Sindhu Devale
2021-11-29 22:54 ` Sindhu Devale [this message]
2021-11-29 22:54 ` [PATCH rdma-core 2/2] providers/irdma: Validate input before memory window bind Sindhu Devale
2021-11-30 12:21 ` [PATCH rdma-core 0/2] Validate input and fix return code Leon Romanovsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211129225446.691-2-sindhu.devale@intel.com \
--to=sindhu.devale@intel.com \
--cc=jgg@nvidia.com \
--cc=leon@kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=mustafa.ismail@intel.com \
--cc=shiraz.saleem@intel.com \
--cc=tatyana.e.nikolova@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.