diff options
| author | Saurav Kashyap <skashyap@marvell.com> | 2019-08-23 05:52:38 -0400 |
|---|---|---|
| committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-08-29 18:51:08 -0400 |
| commit | aa5175a88cbb7eeab2aec874694e28a479d32bfe (patch) | |
| tree | a852a64cf322350ad8f8f4b0e8fc18118fd92378 | |
| parent | 931285e0123c4f380a9e2ff06434c8307b92b726 (diff) | |
scsi: qedf: Add debug information for unsolicited processing
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>
| -rw-r--r-- | drivers/scsi/qedf/qedf_io.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/scsi/qedf/qedf_io.c b/drivers/scsi/qedf/qedf_io.c index 7377a534ff0e..e749a2dcaad7 100644 --- a/drivers/scsi/qedf/qedf_io.c +++ b/drivers/scsi/qedf/qedf_io.c | |||
| @@ -2555,6 +2555,11 @@ void qedf_process_unsol_compl(struct qedf_ctx *qedf, uint16_t que_idx, | |||
| 2555 | fh = (struct fc_frame_header *)fc_frame_header_get(fp); | 2555 | fh = (struct fc_frame_header *)fc_frame_header_get(fp); |
| 2556 | memcpy(fh, (void *)bdq_addr, pktlen); | 2556 | memcpy(fh, (void *)bdq_addr, pktlen); |
| 2557 | 2557 | ||
| 2558 | QEDF_WARN(&qedf->dbg_ctx, | ||
| 2559 | "Processing Unsolicated frame, src=%06x dest=%06x r_ctl=0x%x type=0x%x cmd=%02x\n", | ||
| 2560 | ntoh24(fh->fh_s_id), ntoh24(fh->fh_d_id), fh->fh_r_ctl, | ||
| 2561 | fh->fh_type, fc_frame_payload_op(fp)); | ||
| 2562 | |||
| 2558 | /* Initialize the frame so libfc sees it as a valid frame */ | 2563 | /* Initialize the frame so libfc sees it as a valid frame */ |
| 2559 | crc = fcoe_fc_crc(fp); | 2564 | crc = fcoe_fc_crc(fp); |
| 2560 | fc_frame_init(fp); | 2565 | fc_frame_init(fp); |
