Commit 252e4480 authored by Eddie Wai's avatar Eddie Wai Committed by James Bottomley

[SCSI] bnx2i: Allow to abort the connection if connect request times out

In the situation where the connect completion response arrives after
the connect request has already timed out, the connection was not being
aborted but only the resource was being freed.  This creates a problem
for 5771X (10g) as the chip flags this with an assertion.

This change will properly aborts the connection before freeing the
resource.
Signed-off-by: default avatarEddie Wai <eddie.wai@broadcom.com>
Reviewed-by: default avatarMike Christie <michaelc@cs.wisc.edu>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent 94810e82
...@@ -1906,13 +1906,13 @@ static int bnx2i_ep_tcp_conn_active(struct bnx2i_endpoint *bnx2i_ep) ...@@ -1906,13 +1906,13 @@ static int bnx2i_ep_tcp_conn_active(struct bnx2i_endpoint *bnx2i_ep)
cnic_dev_10g = 1; cnic_dev_10g = 1;
switch (bnx2i_ep->state) { switch (bnx2i_ep->state) {
case EP_STATE_CONNECT_START:
case EP_STATE_CONNECT_FAILED: case EP_STATE_CONNECT_FAILED:
case EP_STATE_CLEANUP_FAILED: case EP_STATE_CLEANUP_FAILED:
case EP_STATE_OFLD_FAILED: case EP_STATE_OFLD_FAILED:
case EP_STATE_DISCONN_TIMEDOUT: case EP_STATE_DISCONN_TIMEDOUT:
ret = 0; ret = 0;
break; break;
case EP_STATE_CONNECT_START:
case EP_STATE_CONNECT_COMPL: case EP_STATE_CONNECT_COMPL:
case EP_STATE_ULP_UPDATE_START: case EP_STATE_ULP_UPDATE_START:
case EP_STATE_ULP_UPDATE_COMPL: case EP_STATE_ULP_UPDATE_COMPL:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment