aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bnx2i
diff options
context:
space:
mode:
authorEddie Wai <eddie.wai@broadcom.com>2011-02-16 16:04:25 -0500
committerJames Bottomley <James.Bottomley@suse.de>2011-02-24 12:38:02 -0500
commitec8933b4bc27c6e143ca3ed4159f2e2c69b5499b (patch)
tree6b8785f991668508d14d46491215fc2febb4fad7 /drivers/scsi/bnx2i
parent6fc124697a0428148b9a8179e8431fa538d2994c (diff)
[SCSI] bnx2i: Allow ep CONNECT_FAILED condition to go through proper cleanup
Allow CNIC to go through the proper cleanup procedure for an endpoint which failed to connect. Proper cleanup is necessary for the chip to reset back to the initial state for the offloaded endpoint. Signed-off-by: Eddie Wai <eddie.wai@broadcom.com> Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/bnx2i')
-rw-r--r--drivers/scsi/bnx2i/bnx2i_iscsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/bnx2i/bnx2i_iscsi.c b/drivers/scsi/bnx2i/bnx2i_iscsi.c
index f0dce26593eb..f9415aa35300 100644
--- a/drivers/scsi/bnx2i/bnx2i_iscsi.c
+++ b/drivers/scsi/bnx2i/bnx2i_iscsi.c
@@ -1935,13 +1935,13 @@ static int bnx2i_ep_tcp_conn_active(struct bnx2i_endpoint *bnx2i_ep)
1935 cnic_dev_10g = 1; 1935 cnic_dev_10g = 1;
1936 1936
1937 switch (bnx2i_ep->state) { 1937 switch (bnx2i_ep->state) {
1938 case EP_STATE_CONNECT_FAILED:
1939 case EP_STATE_CLEANUP_FAILED: 1938 case EP_STATE_CLEANUP_FAILED:
1940 case EP_STATE_OFLD_FAILED: 1939 case EP_STATE_OFLD_FAILED:
1941 case EP_STATE_DISCONN_TIMEDOUT: 1940 case EP_STATE_DISCONN_TIMEDOUT:
1942 ret = 0; 1941 ret = 0;
1943 break; 1942 break;
1944 case EP_STATE_CONNECT_START: 1943 case EP_STATE_CONNECT_START:
1944 case EP_STATE_CONNECT_FAILED:
1945 case EP_STATE_CONNECT_COMPL: 1945 case EP_STATE_CONNECT_COMPL:
1946 case EP_STATE_ULP_UPDATE_START: 1946 case EP_STATE_ULP_UPDATE_START:
1947 case EP_STATE_ULP_UPDATE_COMPL: 1947 case EP_STATE_ULP_UPDATE_COMPL: