diff options
author | Andrew Vasquez | 2006-10-02 21:00:45 +0200 |
---|---|---|
committer | James Bottomley | 2006-10-04 00:28:46 +0200 |
commit | a740a3f0407ed3344b28b05926b0ce61768e9893 (patch) | |
tree | 619098f97854aae9b07aaab908af3a059409255d /drivers/scsi/qla2xxx/qla_attr.c | |
parent | [SCSI] qla2xxx: Add support for symbolic nodename FC transport attribute. (diff) | |
download | kernel-qcow2-linux-a740a3f0407ed3344b28b05926b0ce61768e9893.tar.gz kernel-qcow2-linux-a740a3f0407ed3344b28b05926b0ce61768e9893.tar.xz kernel-qcow2-linux-a740a3f0407ed3344b28b05926b0ce61768e9893.zip |
[SCSI] qla2xxx: Add support for system hostname FC transport attribute.
The system hostname will be used during a subsequent FDMI registration
with the fabric.
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_attr.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_attr.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_attr.c b/drivers/scsi/qla2xxx/qla_attr.c index 463846942e16..4e1e175cb9da 100644 --- a/drivers/scsi/qla2xxx/qla_attr.c +++ b/drivers/scsi/qla2xxx/qla_attr.c @@ -857,6 +857,14 @@ qla2x00_get_host_symbolic_name(struct Scsi_Host *shost) qla2x00_get_sym_node_name(ha, fc_host_symbolic_name(shost)); } +static void +qla2x00_set_host_system_hostname(struct Scsi_Host *shost) +{ + scsi_qla_host_t *ha = to_qla_host(shost); + + set_bit(REGISTER_FDMI_NEEDED, &ha->dpc_flags); +} + struct fc_function_template qla2xxx_transport_functions = { .show_host_node_name = 1, @@ -871,6 +879,8 @@ struct fc_function_template qla2xxx_transport_functions = { .show_host_port_type = 1, .get_host_symbolic_name = qla2x00_get_host_symbolic_name, .show_host_symbolic_name = 1, + .set_host_system_hostname = qla2x00_set_host_system_hostname, + .show_host_system_hostname = 1, .dd_fcrport_size = sizeof(struct fc_port *), .show_rport_supported_classes = 1, |