Commit 2d75d67a authored by Daniel Verkamp's avatar Daniel Verkamp
Browse files

nvmf: don't count RDMA CQ entries



Just return success or failure - the actual count was not used.

Change-Id: I26e7c4c6319af444d221d9b0f313fb7071733619
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent 10687626
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1071,7 +1071,6 @@ nvmf_check_rdma_completions(struct spdk_nvmf_conn *conn)
	struct spdk_nvmf_rdma_request *rdma_req;
	struct spdk_nvmf_request *req;
	int rc;
	int cq_count = 0;
	int i;

	for (i = 0; i < rdma_conn->queue_depth; i++) {
@@ -1086,8 +1085,6 @@ nvmf_check_rdma_completions(struct spdk_nvmf_conn *conn)
		}

		/* OK, process the single successful cq event */
		cq_count += rc;

		if (wc.status) {
			SPDK_TRACELOG(SPDK_TRACE_RDMA, "CQ completion error status %d (%s), exiting handler\n",
				      wc.status, ibv_wc_status_str(wc.status));
@@ -1139,7 +1136,8 @@ nvmf_check_rdma_completions(struct spdk_nvmf_conn *conn)
			return -1;
		}
	}
	return cq_count;

	return 0;
}

static void