]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
scsi: qedf: Add debug information for unsolicited processing
authorSaurav Kashyap <skashyap@marvell.com>
Fri, 23 Aug 2019 09:52:38 +0000 (02:52 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 29 Aug 2019 22:51:08 +0000 (18:51 -0400)
Log s_id, d_id, type and command to the log message.

[mkp: fixed warning]

Signed-off-by: Saurav Kashyap <skashyap@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qedf/qedf_io.c

index 7377a534ff0e134923f3057bb27b0d54d7c5d05a..e749a2dcaad7ee678479e3269f80857f383b6c86 100644 (file)
@@ -2555,6 +2555,11 @@ void qedf_process_unsol_compl(struct qedf_ctx *qedf, uint16_t que_idx,
        fh = (struct fc_frame_header *)fc_frame_header_get(fp);
        memcpy(fh, (void *)bdq_addr, pktlen);
 
+       QEDF_WARN(&qedf->dbg_ctx,
+                 "Processing Unsolicated frame, src=%06x dest=%06x r_ctl=0x%x type=0x%x cmd=%02x\n",
+                 ntoh24(fh->fh_s_id), ntoh24(fh->fh_d_id), fh->fh_r_ctl,
+                 fh->fh_type, fc_frame_payload_op(fp));
+
        /* Initialize the frame so libfc sees it as a valid frame */
        crc = fcoe_fc_crc(fp);
        fc_frame_init(fp);