aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_attr.c
diff options
context:
space:
mode:
authorAndrew Vasquez <andrew.vasquez@qlogic.com>2006-10-02 15:00:44 -0400
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-10-03 18:28:42 -0400
commit1620f7c2d8e3fdd7dba04bfe5f9c42201eef1188 (patch)
tree6d41868193546130bb46b8ec16ffd91e8ead2069 /drivers/scsi/qla2xxx/qla_attr.c
parentd8b4521349274ab610d0b29384c704444e55cbca (diff)
[SCSI] qla2xxx: Add support for symbolic nodename FC transport attribute.
Refactored original code from qla_gs.c:qla2x00_rsnn_nn(). 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.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_attr.c b/drivers/scsi/qla2xxx/qla_attr.c
index 144b0f8459ce..463846942e16 100644
--- a/drivers/scsi/qla2xxx/qla_attr.c
+++ b/drivers/scsi/qla2xxx/qla_attr.c
@@ -849,6 +849,14 @@ qla2x00_get_fc_host_stats(struct Scsi_Host *shost)
849 return pfc_host_stat; 849 return pfc_host_stat;
850} 850}
851 851
852static void
853qla2x00_get_host_symbolic_name(struct Scsi_Host *shost)
854{
855 scsi_qla_host_t *ha = to_qla_host(shost);
856
857 qla2x00_get_sym_node_name(ha, fc_host_symbolic_name(shost));
858}
859
852struct fc_function_template qla2xxx_transport_functions = { 860struct fc_function_template qla2xxx_transport_functions = {
853 861
854 .show_host_node_name = 1, 862 .show_host_node_name = 1,
@@ -861,6 +869,8 @@ struct fc_function_template qla2xxx_transport_functions = {
861 .show_host_speed = 1, 869 .show_host_speed = 1,
862 .get_host_port_type = qla2x00_get_host_port_type, 870 .get_host_port_type = qla2x00_get_host_port_type,
863 .show_host_port_type = 1, 871 .show_host_port_type = 1,
872 .get_host_symbolic_name = qla2x00_get_host_symbolic_name,
873 .show_host_symbolic_name = 1,
864 874
865 .dd_fcrport_size = sizeof(struct fc_port *), 875 .dd_fcrport_size = sizeof(struct fc_port *),
866 .show_rport_supported_classes = 1, 876 .show_rport_supported_classes = 1,