lpfc: refactor debugfs queue dump routines
Subsystems (3)
PATCH v3 5/16 lpfc: refactor debugfs queue dump routines
Create common wq, cq, eq, rq dump functions
Signed-off-by Dick Kennedy <dick.kennedy at broadcom.com>
Signed-off-by James Smart <james.smart at broadcom.com>
--- drivers/scsi/lpfc/lpfc_debugfs.c | 22 ++-- drivers/scsi/lpfc/lpfc_debugfs.h | 214 ++++++++++++++++----------------------- 2 files changed, 101 insertions(+), 135 deletions(-)
drivers/scsi/lpfc/lpfc_debugfs.c +11 -11
@@ -4555,31 +4555,31 @@ lpfc_debugfs_terminate(struct lpfc_vport *vport)void lpfc_debug_dump_all_queues (struct lpfc_hba *phba) { -int fcp_wqidx; +int idx;/* * Dump Work Queues (WQs) */ -lpfc_debug_dump_mbx_wq (phba); -lpfc_debug_dump_els_wq (phba); +lpfc_debug_dump_wq (phba,DUMP_MBX ,0 ); +lpfc_debug_dump_wq (phba,DUMP_ELS ,0 ); -for (fcp_wqidx =0 ; fcp_wqidx < phba->cfg_fcp_io_channel; fcp_wqidx++) -lpfc_debug_dump_fcp_wq (phba, fcp_wqidx); +for (idx =0 ; idx < phba->cfg_fcp_io_channel; idx++) +lpfc_debug_dump_wq (phba,DUMP_FCP , idx);lpfc_debug_dump_hdr_rq (phba);lpfc_debug_dump_dat_rq (phba);/* * Dump Complete Queues (CQs) */ -lpfc_debug_dump_mbx_cq (phba); -lpfc_debug_dump_els_cq (phba); +lpfc_debug_dump_cq (phba,DUMP_MBX ,0 ); +lpfc_debug_dump_cq (phba,DUMP_ELS ,0 ); -for (fcp_wqidx =0 ; fcp_wqidx < phba->cfg_fcp_io_channel; fcp_wqidx++) -lpfc_debug_dump_fcp_cq (phba, fcp_wqidx); +for (idx =0 ; idx < phba->cfg_fcp_io_channel; idx++) +lpfc_debug_dump_cq (phba,DUMP_FCP , idx);/* * Dump Event Queues (EQs) */ -for (fcp_wqidx =0 ; fcp_wqidx < phba->cfg_fcp_io_channel; fcp_wqidx++) -lpfc_debug_dump_hba_eq (phba, fcp_wqidx); +for (idx =0 ; idx < phba->cfg_fcp_io_channel; idx++) +lpfc_debug_dump_hba_eq (phba, idx); }
drivers/scsi/lpfc/lpfc_debugfs.h +90 -124
295 lines not on this page · raw message
Signature · 1 line
2.5.0
PATCH v3 5/16 lpfc: refactor debugfs queue dump routines
Quoted 5 lines · James Smart
Create common wq, cq, eq, rq dump functions
Signed-off-by Dick Kennedy <dick.kennedy at broadcom.com>Signed-off-by James Smart <james.smart at broadcom.com>
Reviewed-by Hannes Reinecke <hare at suse.com>
Cheers,
Hannes
Signature · 5 lines
Dr. Hannes Reinecke Teamlead Storage & Networking hare at suse.de +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 N?rnberg GF: F. Imend?rffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG N?rnberg)
PATCH v3 5/16 lpfc: refactor debugfs queue dump routines
In reply to James SmartQuoted 6 lines · James Smart
Create common wq, cq, eq, rq dump functions
Signed-off-by Dick Kennedy <dick.kennedy at broadcom.com>Signed-off-by James Smart <james.smart at broadcom.com>---
Looks good,
Reviewed-by: Johannes Thumshirn <jthumshirn at suse.de>
Signature · 6 lines
Johannes Thumshirn Storage jthumshirn at suse.de +49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 N?rnberg GF: Felix Imend?rffer, Jane Smithard, Graham Norton HRB 21284 (AG N?rnberg) Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850