aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla4xxx
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2007-05-30 13:57:13 -0400
committerJames Bottomley <jejb@mulgrave.(none)>2007-06-01 12:56:40 -0400
commit8ad5781ae9702a8f95cfdf30967752e4297613ee (patch)
treecaafde966ac7e9cda0e27e3b5412f25021d2d561 /drivers/scsi/qla4xxx
parent0801c242a33426fddc005c2f559a3d2fa6fca7eb (diff)
[SCSI] iscsi class, qla4xxx, iscsi_tcp, ib_iser: export/set initiator name
For iscsi root boot, software iscsi needs to know what the BIOS/OF initiator used for the initiator name so this puts it in sysfs for userspace to be able to pick up. For hw iscsi, it is nice to see what the card is using. This patch adds the new param, and hooks in qla4xxx, iscsi_tcp, and ib_iser. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Cc: Roland Dreier <rdreier@cisco.com> Cc: David C Somayajulu <david.somayajulu@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/qla4xxx')
-rw-r--r--drivers/scsi/qla4xxx/ql4_os.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c
index 29cd4b90ebed..7502bb4808d6 100644
--- a/drivers/scsi/qla4xxx/ql4_os.c
+++ b/drivers/scsi/qla4xxx/ql4_os.c
@@ -104,7 +104,8 @@ static struct iscsi_transport qla4xxx_iscsi_transport = {
104 .name = DRIVER_NAME, 104 .name = DRIVER_NAME,
105 .param_mask = ISCSI_CONN_PORT | ISCSI_CONN_ADDRESS | 105 .param_mask = ISCSI_CONN_PORT | ISCSI_CONN_ADDRESS |
106 ISCSI_TARGET_NAME | ISCSI_TPGT, 106 ISCSI_TARGET_NAME | ISCSI_TPGT,
107 .host_param_mask = ISCSI_HOST_HWADDRESS, 107 .host_param_mask = ISCSI_HOST_HWADDRESS |
108 ISCSI_HOST_INITIATOR_NAME,
108 .sessiondata_size = sizeof(struct ddb_entry), 109 .sessiondata_size = sizeof(struct ddb_entry),
109 .host_template = &qla4xxx_driver_template, 110 .host_template = &qla4xxx_driver_template,
110 111
@@ -190,6 +191,9 @@ static int qla4xxx_host_get_param(struct Scsi_Host *shost,
190 case ISCSI_HOST_PARAM_HWADDRESS: 191 case ISCSI_HOST_PARAM_HWADDRESS:
191 len = format_addr(buf, ha->my_mac, MAC_ADDR_LEN); 192 len = format_addr(buf, ha->my_mac, MAC_ADDR_LEN);
192 break; 193 break;
194 case ISCSI_HOST_PARAM_INITIATOR_NAME:
195 len = sprintf(buf, ha->name_string);
196 break;
193 default: 197 default:
194 return -ENOSYS; 198 return -ENOSYS;
195 } 199 }