Commit cdf81160 authored by James Smart's avatar James Smart Committed by Martin K. Petersen

scsi: lpfc: Reduce LOG_TRACE_EVENT logging for vports

Lots of discovery messages are flooding the console log when testing NPIV.

Informational message for vports should have LOG_VPORT associated with it
as opposed to LOG_TRACE_EVENT.

Link: https://lore.kernel.org/r/20210301171821.3427-20-jsmart2021@gmail.comCo-developed-by: default avatarDick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: default avatarDick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: default avatarJames Smart <jsmart2021@gmail.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent a94a40eb
...@@ -190,7 +190,7 @@ lpfc_valid_wwn_format(struct lpfc_hba *phba, struct lpfc_name *wwn, ...@@ -190,7 +190,7 @@ lpfc_valid_wwn_format(struct lpfc_hba *phba, struct lpfc_name *wwn,
((wwn->u.wwn[0] & 0xf) != 0 || (wwn->u.wwn[1] & 0xf) != 0))) ((wwn->u.wwn[0] & 0xf) != 0 || (wwn->u.wwn[1] & 0xf) != 0)))
return 1; return 1;
lpfc_printf_log(phba, KERN_ERR, LOG_TRACE_EVENT, lpfc_printf_log(phba, KERN_ERR, LOG_VPORT,
"1822 Invalid %s: %02x:%02x:%02x:%02x:" "1822 Invalid %s: %02x:%02x:%02x:%02x:"
"%02x:%02x:%02x:%02x\n", "%02x:%02x:%02x:%02x\n",
name_type, name_type,
...@@ -531,7 +531,7 @@ disable_vport(struct fc_vport *fc_vport) ...@@ -531,7 +531,7 @@ disable_vport(struct fc_vport *fc_vport)
} }
lpfc_vport_set_state(vport, FC_VPORT_DISABLED); lpfc_vport_set_state(vport, FC_VPORT_DISABLED);
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT, lpfc_printf_vlog(vport, KERN_ERR, LOG_VPORT,
"1826 Vport Disabled.\n"); "1826 Vport Disabled.\n");
return VPORT_OK; return VPORT_OK;
} }
...@@ -579,7 +579,7 @@ enable_vport(struct fc_vport *fc_vport) ...@@ -579,7 +579,7 @@ enable_vport(struct fc_vport *fc_vport)
} }
out: out:
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT, lpfc_printf_vlog(vport, KERN_ERR, LOG_VPORT,
"1827 Vport Enabled.\n"); "1827 Vport Enabled.\n");
return VPORT_OK; return VPORT_OK;
} }
...@@ -725,7 +725,7 @@ lpfc_vport_delete(struct fc_vport *fc_vport) ...@@ -725,7 +725,7 @@ lpfc_vport_delete(struct fc_vport *fc_vport)
spin_lock_irq(&phba->port_list_lock); spin_lock_irq(&phba->port_list_lock);
list_del_init(&vport->listentry); list_del_init(&vport->listentry);
spin_unlock_irq(&phba->port_list_lock); spin_unlock_irq(&phba->port_list_lock);
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT, lpfc_printf_vlog(vport, KERN_ERR, LOG_VPORT,
"1828 Vport Deleted.\n"); "1828 Vport Deleted.\n");
scsi_host_put(shost); scsi_host_put(shost);
return VPORT_OK; return VPORT_OK;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment