diff options
author | Quinn Tran <quinn.tran@qlogic.com> | 2015-12-17 14:56:59 -0500 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2016-01-07 13:57:42 -0800 |
commit | 03e8c680d9b3b68ddae648a6e2c91c381e90066f (patch) | |
tree | 937726a900c06fad4ff3291cc022129f31ac4a26 /drivers/scsi/qla2xxx/qla_def.h | |
parent | ce1025cd4b8eb7afe07c3625f2ad080d8bee7cc4 (diff) | |
download | lwn-03e8c680d9b3b68ddae648a6e2c91c381e90066f.tar.gz lwn-03e8c680d9b3b68ddae648a6e2c91c381e90066f.zip |
qla2xxx: Add FW resource count in DebugFS.
DebugFS now will show fw_resource_count node.
FW Resource count
Original TGT exchg count[0]
current TGT exchg count[0]
original Initiator Exchange count[2048]
Current Initiator Exchange count[2048]
Original IOCB count[2078]
Current IOCB count[2067]
MAX VP count[254]
MAX FCF count[0]
Signed-off-by: Quinn Tran <quinn.tran@qlogic.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_def.h')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_def.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h index f63de3576609..8e89848131b4 100644 --- a/drivers/scsi/qla2xxx/qla_def.h +++ b/drivers/scsi/qla2xxx/qla_def.h @@ -2917,7 +2917,7 @@ struct qlt_hw_data { #define MAX_QFULL_CMDS_ALLOC 8192 #define Q_FULL_THRESH_HOLD_PERCENT 90 #define Q_FULL_THRESH_HOLD(ha) \ - ((ha->fw_xcb_count/100) * Q_FULL_THRESH_HOLD_PERCENT) + ((ha->cur_fw_xcb_count/100) * Q_FULL_THRESH_HOLD_PERCENT) #define LEAK_EXCHG_THRESH_HOLD_PERCENT 75 /* 75 percent */ @@ -3298,8 +3298,14 @@ struct qla_hw_data { #define RISC_START_ADDRESS_2100 0x1000 #define RISC_START_ADDRESS_2300 0x800 #define RISC_START_ADDRESS_2400 0x100000 - uint16_t fw_xcb_count; - uint16_t fw_iocb_count; + + uint16_t orig_fw_tgt_xcb_count; + uint16_t cur_fw_tgt_xcb_count; + uint16_t orig_fw_xcb_count; + uint16_t cur_fw_xcb_count; + uint16_t orig_fw_iocb_count; + uint16_t cur_fw_iocb_count; + uint16_t fw_max_fcf_count; uint32_t fw_shared_ram_start; uint32_t fw_shared_ram_end; @@ -3343,6 +3349,7 @@ struct qla_hw_data { struct dentry *dfs_dir; struct dentry *dfs_fce; struct dentry *dfs_tgt_counters; + struct dentry *dfs_fw_resource_cnt; dma_addr_t fce_dma; void *fce; |