mirror of https://gitee.com/openkylin/linux.git
[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>
This commit is contained in:
parent
6fc124697a
commit
ec8933b4bc
|
@ -1935,13 +1935,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_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_START:
|
||||||
|
case EP_STATE_CONNECT_FAILED:
|
||||||
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:
|
||||||
|
|
Loading…
Reference in New Issue