aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bnx2i/bnx2i.h
diff options
context:
space:
mode:
authorEddie Wai <eddie.wai@broadcom.com>2010-11-23 18:29:29 -0500
committerJames Bottomley <James.Bottomley@suse.de>2010-12-21 13:24:14 -0500
commitbee348770dcaeafa57bbd32129ce0cb16a4342d6 (patch)
treea25e1730b3652b47963176778c4c67f184fd6c3e /drivers/scsi/bnx2i/bnx2i.h
parent842158d7b7bc3b1a49c31f43ac20414234c33a8d (diff)
[SCSI] bnx2i: Added return code check for chip kwqe submission request
Added the handling for cases when a chip request is made to the CNIC module but the hardware is not ready to accept. This would lead to many unnecessary wait timeouts. This code adds check in the connect establishment and destruction path. Signed-off-by: Eddie Wai <eddie.wai@broadcom.com> Reviewed-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/bnx2i/bnx2i.h')
-rw-r--r--drivers/scsi/bnx2i/bnx2i.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/scsi/bnx2i/bnx2i.h b/drivers/scsi/bnx2i/bnx2i.h
index 2c34e22493d3..866a22c4413d 100644
--- a/drivers/scsi/bnx2i/bnx2i.h
+++ b/drivers/scsi/bnx2i/bnx2i.h
@@ -649,6 +649,7 @@ enum {
649 EP_STATE_OFLD_FAILED = 0x8000000, 649 EP_STATE_OFLD_FAILED = 0x8000000,
650 EP_STATE_CONNECT_FAILED = 0x10000000, 650 EP_STATE_CONNECT_FAILED = 0x10000000,
651 EP_STATE_DISCONN_TIMEDOUT = 0x20000000, 651 EP_STATE_DISCONN_TIMEDOUT = 0x20000000,
652 EP_STATE_OFLD_FAILED_CID_BUSY = 0x80000000,
652}; 653};
653 654
654/** 655/**
@@ -758,11 +759,11 @@ extern int bnx2i_send_iscsi_logout(struct bnx2i_conn *conn,
758 struct iscsi_task *mtask); 759 struct iscsi_task *mtask);
759extern void bnx2i_send_cmd_cleanup_req(struct bnx2i_hba *hba, 760extern void bnx2i_send_cmd_cleanup_req(struct bnx2i_hba *hba,
760 struct bnx2i_cmd *cmd); 761 struct bnx2i_cmd *cmd);
761extern void bnx2i_send_conn_ofld_req(struct bnx2i_hba *hba, 762extern int bnx2i_send_conn_ofld_req(struct bnx2i_hba *hba,
762 struct bnx2i_endpoint *ep);
763extern void bnx2i_update_iscsi_conn(struct iscsi_conn *conn);
764extern void bnx2i_send_conn_destroy(struct bnx2i_hba *hba,
765 struct bnx2i_endpoint *ep); 763 struct bnx2i_endpoint *ep);
764extern void bnx2i_update_iscsi_conn(struct iscsi_conn *conn);
765extern int bnx2i_send_conn_destroy(struct bnx2i_hba *hba,
766 struct bnx2i_endpoint *ep);
766 767
767extern int bnx2i_alloc_qp_resc(struct bnx2i_hba *hba, 768extern int bnx2i_alloc_qp_resc(struct bnx2i_hba *hba,
768 struct bnx2i_endpoint *ep); 769 struct bnx2i_endpoint *ep);