Skip to content

Commit 051d4b6

Browse files
Justin Teemartinkpetersen
authored andcommitted
scsi: lpfc: Update various NPIV diagnostic log messaging
Update PRLI status log message to automatically warn when CQE status is non-zero. When issuing an RSCN, log ndlp's kref count to the debugfs trace buffer. Add the NPIV virtual port index to the FDMI registration log message with the fabric. Signed-off-by: Justin Tee <justin.tee@broadcom.com> Link: https://patch.msgid.link/20251106224639.139176-2-justintee8345@gmail.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 3a86608 commit 051d4b6

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

drivers/scsi/lpfc/lpfc_els.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2367,7 +2367,7 @@ lpfc_cmpl_els_prli(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
23672367
mode = KERN_INFO;
23682368

23692369
/* Warn PRLI status */
2370-
lpfc_printf_vlog(vport, mode, LOG_ELS,
2370+
lpfc_vlog_msg(vport, mode, LOG_ELS,
23712371
"2754 PRLI DID:%06X Status:x%x/x%x, "
23722372
"data: x%x x%x x%lx\n",
23732373
ndlp->nlp_DID, ulp_status,
@@ -3597,8 +3597,8 @@ lpfc_issue_els_rscn(struct lpfc_vport *vport, uint8_t retry)
35973597
}
35983598

35993599
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_CMD,
3600-
"Issue RSCN: did:x%x",
3601-
ndlp->nlp_DID, 0, 0);
3600+
"Issue RSCN: did:x%x refcnt %d",
3601+
ndlp->nlp_DID, kref_read(&ndlp->kref), 0);
36023602

36033603
rc = lpfc_sli_issue_iocb(phba, LPFC_ELS_RING, elsiocb, 0);
36043604
if (rc == IOCB_ERROR) {

drivers/scsi/lpfc/lpfc_init.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9082,9 +9082,9 @@ lpfc_setup_fdmi_mask(struct lpfc_vport *vport)
90829082
vport->fdmi_port_mask = LPFC_FDMI2_PORT_ATTR;
90839083
}
90849084

9085-
lpfc_printf_log(phba, KERN_INFO, LOG_DISCOVERY,
9086-
"6077 Setup FDMI mask: hba x%x port x%x\n",
9087-
vport->fdmi_hba_mask, vport->fdmi_port_mask);
9085+
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
9086+
"6077 Setup FDMI mask: hba x%x port x%x\n",
9087+
vport->fdmi_hba_mask, vport->fdmi_port_mask);
90889088
}
90899089

90909090
/**

0 commit comments

Comments
 (0)