aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bnx2i/bnx2i.h
diff options
context:
space:
mode:
authorEddie Wai <eddie.wai@broadcom.com>2010-07-01 18:34:51 -0400
committerJames Bottomley <James.Bottomley@suse.de>2010-07-27 13:03:57 -0400
commit46012e8b8de325472790d154f4cfb1cf2d4fc49a (patch)
treed6dfb8a8782e937c367255b528d7b2a2c047e69a /drivers/scsi/bnx2i/bnx2i.h
parent6447f286326690a936c35f9f913499307f869934 (diff)
[SCSI] bnx2i: Created an active linklist which holds bnx2i endpoints
This introduces a new active linklist which would link up all active bnx2i_endpoints. This will be used by subsequent patches that follows. Signed-off-by: Eddie Wai <eddie.wai@broadcom.com> Reviewed-by: Michael Chan <mchan@broadcom.com> Reviewed-by: Benjamin Li <benli@broadcom.com> Acked-by: Anil Veerabhadrappa <anilgv@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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/scsi/bnx2i/bnx2i.h b/drivers/scsi/bnx2i/bnx2i.h
index 6b624e767d3b..c17c3a3d52b8 100644
--- a/drivers/scsi/bnx2i/bnx2i.h
+++ b/drivers/scsi/bnx2i/bnx2i.h
@@ -299,6 +299,7 @@ struct iscsi_cid_queue {
299 * @cid_que: iscsi cid queue 299 * @cid_que: iscsi cid queue
300 * @ep_rdwr_lock: read / write lock to synchronize various ep lists 300 * @ep_rdwr_lock: read / write lock to synchronize various ep lists
301 * @ep_ofld_list: connection list for pending offload completion 301 * @ep_ofld_list: connection list for pending offload completion
302 * @ep_active_list: connection list for active offload endpoints
302 * @ep_destroy_list: connection list for pending offload completion 303 * @ep_destroy_list: connection list for pending offload completion
303 * @mp_bd_tbl: BD table to be used with middle path requests 304 * @mp_bd_tbl: BD table to be used with middle path requests
304 * @mp_bd_dma: DMA address of 'mp_bd_tbl' memory buffer 305 * @mp_bd_dma: DMA address of 'mp_bd_tbl' memory buffer
@@ -369,6 +370,7 @@ struct bnx2i_hba {
369 370
370 rwlock_t ep_rdwr_lock; 371 rwlock_t ep_rdwr_lock;
371 struct list_head ep_ofld_list; 372 struct list_head ep_ofld_list;
373 struct list_head ep_active_list;
372 struct list_head ep_destroy_list; 374 struct list_head ep_destroy_list;
373 375
374 /* 376 /*
@@ -645,6 +647,7 @@ enum {
645 * @link: list head to link elements 647 * @link: list head to link elements
646 * @hba: adapter to which this connection belongs 648 * @hba: adapter to which this connection belongs
647 * @conn: iscsi connection this EP is linked to 649 * @conn: iscsi connection this EP is linked to
650 * @cls_ep: associated iSCSI endpoint pointer
648 * @sess: iscsi session this EP is linked to 651 * @sess: iscsi session this EP is linked to
649 * @cm_sk: cnic sock struct 652 * @cm_sk: cnic sock struct
650 * @hba_age: age to detect if 'iscsid' issues ep_disconnect() 653 * @hba_age: age to detect if 'iscsid' issues ep_disconnect()
@@ -664,6 +667,7 @@ struct bnx2i_endpoint {
664 struct list_head link; 667 struct list_head link;
665 struct bnx2i_hba *hba; 668 struct bnx2i_hba *hba;
666 struct bnx2i_conn *conn; 669 struct bnx2i_conn *conn;
670 struct iscsi_endpoint *cls_ep;
667 struct cnic_sock *cm_sk; 671 struct cnic_sock *cm_sk;
668 u32 hba_age; 672 u32 hba_age;
669 u32 state; 673 u32 state;