Skip to content

Commit 41c831b

Browse files
Justin Teemartinkpetersen
Justin Tee
authored andcommitted
scsi: lpfc: Introduce LOG_NODE_VERBOSE messaging flag
The preexisting LOG_NODE message flag frequently spams a subset of the same log messages during normal FC driver operations. When analyzing driver logs, this sometimes leads to difficulty in troubleshooting. Because LOG_IP log message flag is unused, convert it to a new LOG_NODE_VERBOSE flag. The LOG_NODE_VERBOSE shall specifically be used for diagnosing issues that require precise ndlp tracking detail. Signed-off-by: Justin Tee <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
1 parent a3c3c0a commit 41c831b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

drivers/scsi/lpfc/lpfc_hbadisc.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -5653,7 +5653,7 @@ __lpfc_findnode_did(struct lpfc_vport *vport, uint32_t did)
56535653
((uint32_t)ndlp->nlp_xri << 16) |
56545654
((uint32_t)ndlp->nlp_type << 8)
56555655
);
5656-
lpfc_printf_vlog(vport, KERN_INFO, LOG_NODE,
5656+
lpfc_printf_vlog(vport, KERN_INFO, LOG_NODE_VERBOSE,
56575657
"0929 FIND node DID "
56585658
"Data: x%px x%x x%x x%x x%x x%px\n",
56595659
ndlp, ndlp->nlp_DID,
@@ -5700,8 +5700,8 @@ lpfc_findnode_mapped(struct lpfc_vport *vport)
57005700
((uint32_t)ndlp->nlp_type << 8) |
57015701
((uint32_t)ndlp->nlp_rpi & 0xff));
57025702
spin_unlock_irqrestore(shost->host_lock, iflags);
5703-
lpfc_printf_vlog(vport, KERN_INFO, LOG_NODE,
5704-
"2025 FIND node DID "
5703+
lpfc_printf_vlog(vport, KERN_INFO, LOG_NODE_VERBOSE,
5704+
"2025 FIND node DID MAPPED "
57055705
"Data: x%px x%x x%x x%x x%px\n",
57065706
ndlp, ndlp->nlp_DID,
57075707
ndlp->nlp_flag, data1,
@@ -6467,7 +6467,7 @@ __lpfc_find_node(struct lpfc_vport *vport, node_filter filter, void *param)
64676467

64686468
list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) {
64696469
if (filter(ndlp, param)) {
6470-
lpfc_printf_vlog(vport, KERN_INFO, LOG_NODE,
6470+
lpfc_printf_vlog(vport, KERN_INFO, LOG_NODE_VERBOSE,
64716471
"3185 FIND node filter %ps DID "
64726472
"ndlp x%px did x%x flg x%x st x%x "
64736473
"xri x%x type x%x rpi x%x\n",

drivers/scsi/lpfc/lpfc_logmsg.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#define LOG_MBOX 0x00000004 /* Mailbox events */
2626
#define LOG_INIT 0x00000008 /* Initialization events */
2727
#define LOG_LINK_EVENT 0x00000010 /* Link events */
28-
#define LOG_IP 0x00000020 /* IP traffic history */
28+
#define LOG_NODE_VERBOSE 0x00000020 /* Node verbose events */
2929
#define LOG_FCP 0x00000040 /* FCP traffic history */
3030
#define LOG_NODE 0x00000080 /* Node table events */
3131
#define LOG_TEMP 0x00000100 /* Temperature sensor events */

0 commit comments

Comments
 (0)