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: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
f8296a99c2
commit
5ca81749de
@ -949,7 +949,7 @@ nvmf_check_rdma_completions(struct spdk_nvmf_conn *conn)
|
|||||||
if (wc.status) {
|
if (wc.status) {
|
||||||
SPDK_TRACELOG(SPDK_TRACE_RDMA, "CQ completion error status %d (%s), exiting handler\n",
|
SPDK_TRACELOG(SPDK_TRACE_RDMA, "CQ completion error status %d (%s), exiting handler\n",
|
||||||
wc.status, ibv_wc_status_str(wc.status));
|
wc.status, ibv_wc_status_str(wc.status));
|
||||||
break;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (wc.opcode) {
|
switch (wc.opcode) {
|
||||||
|
Loading…
Reference in New Issue
Block a user