summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_inline.h
diff options
context:
space:
mode:
authorChad Dupuis <chad.dupuis@qlogic.com>2012-02-09 11:15:57 -0800
committerJames Bottomley <JBottomley@Parallels.com>2012-02-19 08:33:13 -0600
commit642ef983861a6a7ba41e9d7c0aa4da8f6d5af5bf (patch)
tree5688c1503783f8b530bd83f5928271de8dbb9677 /drivers/scsi/qla2xxx/qla_inline.h
parent7a67735b07aa1bf61b8535eec6f6fb6474cf7926 (diff)
downloadop-kernel-dev-642ef983861a6a7ba41e9d7c0aa4da8f6d5af5bf.zip
op-kernel-dev-642ef983861a6a7ba41e9d7c0aa4da8f6d5af5bf.tar.gz
[SCSI] qla2xxx: Add ha->max_fibre_devices to keep track of the maximum number of targets.
Add a field to the qla_hw_data struct to allow us to set the maximum number of fabric devices on a per adapter basis based on ISP type. [jejb: fix up missing rval = QLA_SUCCESS to prevent uninit var warning] Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com> Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_inline.h')
-rw-r--r--drivers/scsi/qla2xxx/qla_inline.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_inline.h b/drivers/scsi/qla2xxx/qla_inline.h
index 3ea0ced..6e45764 100644
--- a/drivers/scsi/qla2xxx/qla_inline.h
+++ b/drivers/scsi/qla2xxx/qla_inline.h
@@ -181,3 +181,9 @@ qla2x00_init_timer(srb_t *sp, unsigned long tmo)
add_timer(&sp->u.iocb_cmd.timer);
sp->free = qla2x00_sp_free;
}
+
+static inline int
+qla2x00_gid_list_size(struct qla_hw_data *ha)
+{
+ return sizeof(struct gid_list_info) * ha->max_fibre_devices;
+}
OpenPOWER on IntegriCloud