diff options
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_attr.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/drivers/scsi/lpfc/lpfc_attr.c b/drivers/scsi/lpfc/lpfc_attr.c index d384c16f4a87..c6d683d86cff 100644 --- a/drivers/scsi/lpfc/lpfc_attr.c +++ b/drivers/scsi/lpfc/lpfc_attr.c | |||
@@ -1204,6 +1204,15 @@ lpfc_get_host_fabric_name (struct Scsi_Host *shost) | |||
1204 | fc_host_fabric_name(shost) = node_name; | 1204 | fc_host_fabric_name(shost) = node_name; |
1205 | } | 1205 | } |
1206 | 1206 | ||
1207 | static void | ||
1208 | lpfc_get_host_symbolic_name (struct Scsi_Host *shost) | ||
1209 | { | ||
1210 | struct lpfc_hba *phba = (struct lpfc_hba*)shost->hostdata; | ||
1211 | |||
1212 | spin_lock_irq(shost->host_lock); | ||
1213 | lpfc_get_hba_sym_node_name(phba, fc_host_symbolic_name(shost)); | ||
1214 | spin_unlock_irq(shost->host_lock); | ||
1215 | } | ||
1207 | 1216 | ||
1208 | static struct fc_host_statistics * | 1217 | static struct fc_host_statistics * |
1209 | lpfc_get_stats(struct Scsi_Host *shost) | 1218 | lpfc_get_stats(struct Scsi_Host *shost) |
@@ -1486,7 +1495,6 @@ struct fc_function_template lpfc_transport_functions = { | |||
1486 | .show_host_port_name = 1, | 1495 | .show_host_port_name = 1, |
1487 | .show_host_supported_classes = 1, | 1496 | .show_host_supported_classes = 1, |
1488 | .show_host_supported_fc4s = 1, | 1497 | .show_host_supported_fc4s = 1, |
1489 | .show_host_symbolic_name = 1, | ||
1490 | .show_host_supported_speeds = 1, | 1498 | .show_host_supported_speeds = 1, |
1491 | .show_host_maxframe_size = 1, | 1499 | .show_host_maxframe_size = 1, |
1492 | 1500 | ||
@@ -1509,6 +1517,9 @@ struct fc_function_template lpfc_transport_functions = { | |||
1509 | .get_host_fabric_name = lpfc_get_host_fabric_name, | 1517 | .get_host_fabric_name = lpfc_get_host_fabric_name, |
1510 | .show_host_fabric_name = 1, | 1518 | .show_host_fabric_name = 1, |
1511 | 1519 | ||
1520 | .get_host_symbolic_name = lpfc_get_host_symbolic_name, | ||
1521 | .show_host_symbolic_name = 1, | ||
1522 | |||
1512 | /* | 1523 | /* |
1513 | * The LPFC driver treats linkdown handling as target loss events | 1524 | * The LPFC driver treats linkdown handling as target loss events |
1514 | * so there are no sysfs handlers for link_down_tmo. | 1525 | * so there are no sysfs handlers for link_down_tmo. |