diff options
author | Krishna Gudipati <kgudipat@brocade.com> | 2010-03-05 22:37:57 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-03-07 02:37:00 -0500 |
commit | 0a4b1fc0b24fc7adbaf8413f2992ce1395991a78 (patch) | |
tree | 9a07aeee614e2e3f3191aee552effc467163fb33 /drivers/scsi/bfa/bfad_drv.h | |
parent | f58e9ebbf78bd36c6cf1ca651280d39efe73a7c0 (diff) |
[SCSI] bfa: Replace bfa_get_attr() with specific APIs
bfa_ioc_attr_s is a big structure and some times could cause
stack overflow if defined locally, so add specific APIs that
are needed to replace the use of ioc_attr local var.
Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/bfa/bfad_drv.h')
-rw-r--r-- | drivers/scsi/bfa/bfad_drv.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/scsi/bfa/bfad_drv.h b/drivers/scsi/bfa/bfad_drv.h index 94f4d84c71c9..8617a1aa8b25 100644 --- a/drivers/scsi/bfa/bfad_drv.h +++ b/drivers/scsi/bfa/bfad_drv.h | |||
@@ -139,6 +139,18 @@ struct bfad_cfg_param_s { | |||
139 | u32 binding_method; | 139 | u32 binding_method; |
140 | }; | 140 | }; |
141 | 141 | ||
142 | union bfad_tmp_buf { | ||
143 | /* From struct bfa_adapter_attr_s */ | ||
144 | char manufacturer[BFA_ADAPTER_MFG_NAME_LEN]; | ||
145 | char serial_num[BFA_ADAPTER_SERIAL_NUM_LEN]; | ||
146 | char model[BFA_ADAPTER_MODEL_NAME_LEN]; | ||
147 | char fw_ver[BFA_VERSION_LEN]; | ||
148 | char optrom_ver[BFA_VERSION_LEN]; | ||
149 | |||
150 | /* From struct bfa_ioc_pci_attr_s */ | ||
151 | u8 chip_rev[BFA_IOC_CHIP_REV_LEN]; /* chip revision */ | ||
152 | }; | ||
153 | |||
142 | /* | 154 | /* |
143 | * BFAD (PCI function) data structure | 155 | * BFAD (PCI function) data structure |
144 | */ | 156 | */ |
@@ -182,6 +194,7 @@ struct bfad_s { | |||
182 | struct bfa_plog_s plog_buf; | 194 | struct bfa_plog_s plog_buf; |
183 | int ref_count; | 195 | int ref_count; |
184 | bfa_boolean_t ipfc_enabled; | 196 | bfa_boolean_t ipfc_enabled; |
197 | union bfad_tmp_buf tmp_buf; | ||
185 | struct fc_host_statistics link_stats; | 198 | struct fc_host_statistics link_stats; |
186 | 199 | ||
187 | struct kobject *bfa_kobj; | 200 | struct kobject *bfa_kobj; |