scsi: qla2xxx: Add debug dump of LOGO payload and ELS IOCB
The change adds a way to debug LOGO ELS, likewise PLOGI. Link: https://lore.kernel.org/r/20191125165702.1013-14-r.bolshakov@yadro.com Acked-by: Himanshu Madhani <hmadhani@marvell.com> Acked-by: Quinn Tran <qutran@marvell.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Tested-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
af22f0c7b0
commit
9545767db3
|
@ -2625,6 +2625,10 @@ qla24xx_els_dcmd_iocb(scsi_qla_host_t *vha, int els_opcode,
|
|||
|
||||
memcpy(elsio->u.els_logo.els_logo_pyld, &logo_pyld,
|
||||
sizeof(struct els_logo_payload));
|
||||
ql_dbg(ql_dbg_disc + ql_dbg_buffer, vha, 0x3075, "LOGO buffer:");
|
||||
ql_dump_buffer(ql_dbg_disc + ql_dbg_buffer, vha, 0x010a,
|
||||
elsio->u.els_logo.els_logo_pyld,
|
||||
sizeof(*elsio->u.els_logo.els_logo_pyld));
|
||||
|
||||
rval = qla2x00_start_sp(sp);
|
||||
if (rval != QLA_SUCCESS) {
|
||||
|
@ -2697,6 +2701,11 @@ qla24xx_els_logo_iocb(srb_t *sp, struct els_entry_24xx *els_iocb)
|
|||
els_iocb->rx_byte_count = 0;
|
||||
els_iocb->rx_address = 0;
|
||||
els_iocb->rx_len = 0;
|
||||
ql_dbg(ql_dbg_io + ql_dbg_buffer, vha, 0x3076,
|
||||
"LOGO ELS IOCB:");
|
||||
ql_dump_buffer(ql_log_info, vha, 0x010b,
|
||||
els_iocb,
|
||||
sizeof(*els_iocb));
|
||||
}
|
||||
|
||||
sp->vha->qla_stats.control_requests++;
|
||||
|
|
Loading…
Reference in New Issue