Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 35035
b: refs/heads/master
c: ae36764
h: refs/heads/master
i:
  35033: ea6d72d
  35031: 41aaf0f
v: v3
  • Loading branch information
James Smart authored and James Bottomley committed Sep 2, 2006
1 parent 60c8490 commit 1023d2c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d2873e4c1ef293ee6d66456fb84448e258a487fa
refs/heads/master: ae36764a230ff6a278ed93735acf5fcda08f2786
13 changes: 12 additions & 1 deletion trunk/drivers/scsi/lpfc/lpfc_attr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1204,6 +1204,15 @@ lpfc_get_host_fabric_name (struct Scsi_Host *shost)
fc_host_fabric_name(shost) = node_name;
}

static void
lpfc_get_host_symbolic_name (struct Scsi_Host *shost)
{
struct lpfc_hba *phba = (struct lpfc_hba*)shost->hostdata;

spin_lock_irq(shost->host_lock);
lpfc_get_hba_sym_node_name(phba, fc_host_symbolic_name(shost));
spin_unlock_irq(shost->host_lock);
}

static struct fc_host_statistics *
lpfc_get_stats(struct Scsi_Host *shost)
Expand Down Expand Up @@ -1486,7 +1495,6 @@ struct fc_function_template lpfc_transport_functions = {
.show_host_port_name = 1,
.show_host_supported_classes = 1,
.show_host_supported_fc4s = 1,
.show_host_symbolic_name = 1,
.show_host_supported_speeds = 1,
.show_host_maxframe_size = 1,

Expand All @@ -1509,6 +1517,9 @@ struct fc_function_template lpfc_transport_functions = {
.get_host_fabric_name = lpfc_get_host_fabric_name,
.show_host_fabric_name = 1,

.get_host_symbolic_name = lpfc_get_host_symbolic_name,
.show_host_symbolic_name = 1,

/*
* The LPFC driver treats linkdown handling as target loss events
* so there are no sysfs handlers for link_down_tmo.
Expand Down

0 comments on commit 1023d2c

Please sign in to comment.