提交 6c9231f6 编写于 作者: J James Smart 提交者: Martin K. Petersen

scsi: lpfc: Correct host name in symbolic_name field

Correct host name in symbolic_name field of nameserver registrations
Signed-off-by: NDick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: NJames Smart <james.smart@broadcom.com>
Reviewed-by: NHannes Reinecke <hare@suse.com>
Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
上级 e6c6acc0
...@@ -4846,6 +4846,19 @@ lpfc_free_sysfs_attr(struct lpfc_vport *vport) ...@@ -4846,6 +4846,19 @@ lpfc_free_sysfs_attr(struct lpfc_vport *vport)
* Dynamic FC Host Attributes Support * Dynamic FC Host Attributes Support
*/ */
/**
* lpfc_get_host_symbolic_name - Copy symbolic name into the scsi host
* @shost: kernel scsi host pointer.
**/
static void
lpfc_get_host_symbolic_name(struct Scsi_Host *shost)
{
struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata;
lpfc_vport_symbolic_node_name(vport, fc_host_symbolic_name(shost),
sizeof fc_host_symbolic_name(shost));
}
/** /**
* lpfc_get_host_port_id - Copy the vport DID into the scsi host port id * lpfc_get_host_port_id - Copy the vport DID into the scsi host port id
* @shost: kernel scsi host pointer. * @shost: kernel scsi host pointer.
...@@ -5383,6 +5396,8 @@ struct fc_function_template lpfc_transport_functions = { ...@@ -5383,6 +5396,8 @@ struct fc_function_template lpfc_transport_functions = {
.show_host_supported_fc4s = 1, .show_host_supported_fc4s = 1,
.show_host_supported_speeds = 1, .show_host_supported_speeds = 1,
.show_host_maxframe_size = 1, .show_host_maxframe_size = 1,
.get_host_symbolic_name = lpfc_get_host_symbolic_name,
.show_host_symbolic_name = 1, .show_host_symbolic_name = 1,
/* dynamic attributes the driver supports */ /* dynamic attributes the driver supports */
...@@ -5450,6 +5465,8 @@ struct fc_function_template lpfc_vport_transport_functions = { ...@@ -5450,6 +5465,8 @@ struct fc_function_template lpfc_vport_transport_functions = {
.show_host_supported_fc4s = 1, .show_host_supported_fc4s = 1,
.show_host_supported_speeds = 1, .show_host_supported_speeds = 1,
.show_host_maxframe_size = 1, .show_host_maxframe_size = 1,
.get_host_symbolic_name = lpfc_get_host_symbolic_name,
.show_host_symbolic_name = 1, .show_host_symbolic_name = 1,
/* dynamic attributes the driver supports */ /* dynamic attributes the driver supports */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册