nvmf/rdma: Do not log an error for recv WC with error status
When we don't use SRQ and close a qpair, we will receive completions with error status for all posted ibv_recv_wrs. This is expected and we don't want to log an error, use debug severity in this case. Fixes #1387 Change-Id: Ia8efb8f24628880454fab1d7f6188e7b31cffb67 Signed-off-by: Alexey Marchuk <alexeymar@mellanox.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2451 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Community-CI: Broadcom CI Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
parent
e230d49ae2
commit
48dee973ac
@ -3854,8 +3854,16 @@ nvmf_rdma_poller_poll(struct spdk_nvmf_rdma_transport *rtransport,
|
|||||||
|
|
||||||
/* Handle error conditions */
|
/* Handle error conditions */
|
||||||
if (wc[i].status) {
|
if (wc[i].status) {
|
||||||
SPDK_ERRLOG("Error on CQ %p, request 0x%lu, type %d, status: (%d): %s\n",
|
if ((rdma_wr->type == RDMA_WR_TYPE_RECV && !rpoller->srq)) {
|
||||||
rpoller->cq, wc[i].wr_id, rdma_wr->type, wc[i].status, ibv_wc_status_str(wc[i].status));
|
/* When we don't use SRQ and close a qpair, we will receive completions with error
|
||||||
|
* status for all posted ibv_recv_wrs. This is expected and we don't want to log
|
||||||
|
* an error in that case. */
|
||||||
|
SPDK_DEBUGLOG(SPDK_LOG_RDMA, "Error on CQ %p, request 0x%lu, type %d, status: (%d): %s\n",
|
||||||
|
rpoller->cq, wc[i].wr_id, rdma_wr->type, wc[i].status, ibv_wc_status_str(wc[i].status));
|
||||||
|
} else {
|
||||||
|
SPDK_ERRLOG("Error on CQ %p, request 0x%lu, type %d, status: (%d): %s\n",
|
||||||
|
rpoller->cq, wc[i].wr_id, rdma_wr->type, wc[i].status, ibv_wc_status_str(wc[i].status));
|
||||||
|
}
|
||||||
|
|
||||||
error = true;
|
error = true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user