Skip to contentSkip to conversation

scsi: fnic: Improve logs and add support for multiqueue (MQ)

PATCH Superseded Karan Tilak Kumar 1 participant 1 message Nov 14, 2023

Subsystems (2)

v3 of 6 Superseded Latest is v6 →

lore
Share & tools
lore

Karan Tilak Kumar

author maintainer
#0 lore raw

PATCH v3 12/13 scsi: fnic: Improve logs and add support for multiqueue (MQ)

Improve existing logs by adding fnic number, hardware queue, tag, and mqtag in the prints.
Add logs with the above elements for effective debugging.

Changes between v2 and v3:
Incorporate the following review comment from Hannes:
Use fnic_num as an argument to FNIC_SCSI_DBG. Modify definition of FNIC_SCSI_DBG.
Host number is still an argument since FNIC_SCSI_DBG in turn uses shost_printk.

---
 drivers/scsi/fnic/fnic.h      |   6 +-
 drivers/scsi/fnic/fnic_scsi.c | 288 ++++++++++++++++++----------------
 2 files changed, 154 insertions(+), 140 deletions(-)
drivers/scsi/fnic/fnic.h +4 -2
index d5b9590894d2..c4edbd7dfc25 100644
@@ -155,9 +155,11 @@ do {								\
 				"fnic<%d>: %s: %d: " fmt, fnic_num,\
 				__func__, __LINE__, ##args);)
 
-#define FNIC_SCSI_DBG(kern_level, host, fmt, args...)		\
+#define FNIC_SCSI_DBG(kern_level, host, fnic_num, fmt, args...)		\
 	FNIC_CHECK_LOGGING(FNIC_SCSI_LOGGING,			\
-			 shost_printk(kern_level, host, fmt, ##args);)
+			 shost_printk(kern_level, host,			\
+				"fnic<%d>: %s: %d: " fmt, fnic_num,\
+				__func__, __LINE__, ##args);)
 
 #define FNIC_ISR_DBG(kern_level, host, fnic_num, fmt, args...)		\
 	FNIC_CHECK_LOGGING(FNIC_ISR_LOGGING,			\
drivers/scsi/fnic/fnic_scsi.c +150 -138

670 lines not on this page · raw message

Signature · 1 line
2.31.1