Commit 5ca81749 authored by Daniel Verkamp's avatar Daniel Verkamp
Browse files

nvmf: return error if wc status indicates error



If any completion indicates an error, we need to close the connection.

Change-Id: I50b30aa692ae121932f1baec32f713422ff415ed
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent f8296a99
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -949,7 +949,7 @@ nvmf_check_rdma_completions(struct spdk_nvmf_conn *conn)
		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));
			break;
			return -1;
		}

		switch (wc.opcode) {