Skip to content

Commit 44eb947

Browse files
James Smartgregkh
authored andcommitted
scsi: lpfc: Correct host name in symbolic_name field
[ Upstream commit 6c9231f604c2575be24c96d38deb70f145172f92 ] Correct host name in symbolic_name field of nameserver registrations Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com> Signed-off-by: James Smart <james.smart@broadcom.com> Reviewed-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent a7e7d31 commit 44eb947

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

drivers/scsi/lpfc/lpfc_attr.c

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5147,6 +5147,19 @@ lpfc_free_sysfs_attr(struct lpfc_vport *vport)
51475147
* Dynamic FC Host Attributes Support
51485148
*/
51495149

5150+
/**
5151+
* lpfc_get_host_symbolic_name - Copy symbolic name into the scsi host
5152+
* @shost: kernel scsi host pointer.
5153+
**/
5154+
static void
5155+
lpfc_get_host_symbolic_name(struct Scsi_Host *shost)
5156+
{
5157+
struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata;
5158+
5159+
lpfc_vport_symbolic_node_name(vport, fc_host_symbolic_name(shost),
5160+
sizeof fc_host_symbolic_name(shost));
5161+
}
5162+
51505163
/**
51515164
* lpfc_get_host_port_id - Copy the vport DID into the scsi host port id
51525165
* @shost: kernel scsi host pointer.
@@ -5684,6 +5697,8 @@ struct fc_function_template lpfc_transport_functions = {
56845697
.show_host_supported_fc4s = 1,
56855698
.show_host_supported_speeds = 1,
56865699
.show_host_maxframe_size = 1,
5700+
5701+
.get_host_symbolic_name = lpfc_get_host_symbolic_name,
56875702
.show_host_symbolic_name = 1,
56885703

56895704
/* dynamic attributes the driver supports */
@@ -5751,6 +5766,8 @@ struct fc_function_template lpfc_vport_transport_functions = {
57515766
.show_host_supported_fc4s = 1,
57525767
.show_host_supported_speeds = 1,
57535768
.show_host_maxframe_size = 1,
5769+
5770+
.get_host_symbolic_name = lpfc_get_host_symbolic_name,
57545771
.show_host_symbolic_name = 1,
57555772

57565773
/* dynamic attributes the driver supports */

0 commit comments

Comments
 (0)