diff options
author | Manish Rangankar <manish.rangankar@qlogic.com> | 2011-07-25 14:48:55 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-08-27 10:36:27 -0400 |
commit | 2a991c2159782b8d318ac9f88a36c22dda3e7185 (patch) | |
tree | 963cc3bec9517038458ad7e71b9a5d45ede4d360 /drivers/scsi/qla4xxx/ql4_nx.c | |
parent | 0e7e85019c2709131b10c5f34b602cc6b94fe782 (diff) |
[SCSI] qla4xxx: Boot from SAN support for open-iscsi
Hook qla4xxx in fw boot sysfs interface so iscsi tools
can use the info to create boot sessions.
Signed-off-by: Manish Rangankar <manish.rangankar@qlogic.com>
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/qla4xxx/ql4_nx.c')
-rw-r--r-- | drivers/scsi/qla4xxx/ql4_nx.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_nx.c b/drivers/scsi/qla4xxx/ql4_nx.c index fdfe27b38698..52a1063e4fd5 100644 --- a/drivers/scsi/qla4xxx/ql4_nx.c +++ b/drivers/scsi/qla4xxx/ql4_nx.c | |||
@@ -2020,6 +2020,9 @@ qla4_8xxx_get_flt_info(struct scsi_qla_host *ha, uint32_t flt_addr) | |||
2020 | case FLT_REG_BOOTLOAD_82: | 2020 | case FLT_REG_BOOTLOAD_82: |
2021 | hw->flt_region_bootload = start; | 2021 | hw->flt_region_bootload = start; |
2022 | break; | 2022 | break; |
2023 | case FLT_REG_ISCSI_PARAM: | ||
2024 | hw->flt_iscsi_param = start; | ||
2025 | break; | ||
2023 | } | 2026 | } |
2024 | } | 2027 | } |
2025 | goto done; | 2028 | goto done; |
@@ -2258,6 +2261,7 @@ int qla4_8xxx_get_sys_info(struct scsi_qla_host *ha) | |||
2258 | } | 2261 | } |
2259 | 2262 | ||
2260 | /* Save M.A.C. address & serial_number */ | 2263 | /* Save M.A.C. address & serial_number */ |
2264 | ha->port_num = sys_info->port_num; | ||
2261 | memcpy(ha->my_mac, &sys_info->mac_addr[0], | 2265 | memcpy(ha->my_mac, &sys_info->mac_addr[0], |
2262 | min(sizeof(ha->my_mac), sizeof(sys_info->mac_addr))); | 2266 | min(sizeof(ha->my_mac), sizeof(sys_info->mac_addr))); |
2263 | memcpy(ha->serial_number, &sys_info->serial_number, | 2267 | memcpy(ha->serial_number, &sys_info->serial_number, |