All of lore.kernel.org
 help / color / mirror / Atom feed
From: Himanshu Madhani <himanshu.madhani@cavium.com>
To: target-devel@vger.kernel.org, Bart.VanAssche@sandisk.com,
	hch@infradead.org, nab@linux-iscsi.org
Cc: giridhar.malavali@cavium.com, linux-scsi@vger.kernel.org,
	himanshu.madhani@cavium.com
Subject: [PATCH 07/15] qla2xxx: Export DIF stats via debugfs
Date: Thu, 2 Feb 2017 11:42:30 -0800	[thread overview]
Message-ID: <1486064558-365-8-git-send-email-himanshu.madhani@cavium.com> (raw)
In-Reply-To: <1486064558-365-1-git-send-email-himanshu.madhani@cavium.com>

From: Anil Gurumurthy <anil.gurumurthy@cavium.com>

Signed-off-by: Anil Gurumurthy <anil.gurumurthy@cavium.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com>
---
 drivers/scsi/qla2xxx/qla_def.h | 12 ++++++++++++
 drivers/scsi/qla2xxx/qla_dfs.c | 15 +++++++++++++++
 2 files changed, 27 insertions(+)

diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h
index e98bce4..f16ee3e 100644
--- a/drivers/scsi/qla2xxx/qla_def.h
+++ b/drivers/scsi/qla2xxx/qla_def.h
@@ -3130,6 +3130,16 @@ struct qla_chip_state_84xx {
 	uint32_t gold_fw_version;
 };
 
+struct qla_dif_statistics {
+	uint64_t dif_input_bytes;
+	uint64_t dif_output_bytes;
+	uint64_t dif_input_requests;
+	uint64_t dif_output_requests;
+	uint32_t dif_guard_err;
+	uint32_t dif_ref_tag_err;
+	uint32_t dif_app_tag_err;
+};
+
 struct qla_statistics {
 	uint32_t total_isp_aborts;
 	uint64_t input_bytes;
@@ -3142,6 +3152,8 @@ struct qla_statistics {
 	uint32_t stat_max_pend_cmds;
 	uint32_t stat_max_qfull_cmds_alloc;
 	uint32_t stat_max_qfull_cmds_dropped;
+
+	struct qla_dif_statistics qla_dif_stats;
 };
 
 struct bidi_statistics {
diff --git a/drivers/scsi/qla2xxx/qla_dfs.c b/drivers/scsi/qla2xxx/qla_dfs.c
index 0fb33e6..989e17b 100644
--- a/drivers/scsi/qla2xxx/qla_dfs.c
+++ b/drivers/scsi/qla2xxx/qla_dfs.c
@@ -185,6 +185,21 @@
 	seq_printf(s, "num Q full sent = %lld\n",
 		vha->tgt_counters.num_q_full_sent);
 
+	/* DIF stats */
+	seq_printf(s, "DIF Inp Bytes = %lld\n",
+		vha->qla_stats.qla_dif_stats.dif_input_bytes);
+	seq_printf(s, "DIF Outp Bytes = %lld\n",
+		vha->qla_stats.qla_dif_stats.dif_output_bytes);
+	seq_printf(s, "DIF Inp Req = %lld\n",
+		vha->qla_stats.qla_dif_stats.dif_input_requests);
+	seq_printf(s, "DIF Outp Req = %lld\n",
+		vha->qla_stats.qla_dif_stats.dif_output_requests);
+	seq_printf(s, "DIF Guard err = %d\n",
+		vha->qla_stats.qla_dif_stats.dif_guard_err);
+	seq_printf(s, "DIF Ref tag err = %d\n",
+		vha->qla_stats.qla_dif_stats.dif_ref_tag_err);
+	seq_printf(s, "DIF App tag err = %d\n",
+		vha->qla_stats.qla_dif_stats.dif_app_tag_err);
 	return 0;
 }
 
-- 
1.8.3.1

  parent reply	other threads:[~2017-02-02 19:44 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-02 19:42 [PATCH 00/15] qla2xxx: Bug Fixes and updates for target Himanshu Madhani
2017-02-02 19:42 ` [PATCH 01/15] qla2xxx: Fix delayed response to command for loop mode/direct connect Himanshu Madhani
2017-02-02 19:42 ` [PATCH 02/15] qla2xxx: Allow relogin to proceed if remote login did not finish Himanshu Madhani
2017-02-02 19:42 ` [PATCH 03/15] qla2xxx: Allow vref count to timeout on vport delete Himanshu Madhani
2017-02-02 19:42 ` [PATCH 04/15] qla2xxx: Use IOCB interface to submit non-critical MBX Himanshu Madhani
2017-02-02 19:42 ` [PATCH 05/15] qla2xxx: Add DebugFS node to display Port Database Himanshu Madhani
2017-02-02 19:42 ` [PATCH 06/15] qla2xxx: Improve T10-DIF/PI handling in driver Himanshu Madhani
2017-02-02 19:42 ` Himanshu Madhani [this message]
2017-02-02 19:42 ` [PATCH 08/15] qla2xxx: Change scsi host lookup method Himanshu Madhani
2017-02-02 19:42 ` [PATCH 09/15] qla2xxx: Fix memory leak for abts processing Himanshu Madhani
2017-02-02 19:42 ` [PATCH 10/15] qla2xxx: Fix request queue corruption Himanshu Madhani
2017-02-02 19:42 ` [PATCH 11/15] qla2xxx: Fix inadequate lock protection for ABTS Himanshu Madhani
2017-02-02 19:42 ` [PATCH 12/15] qla2xxx: Fix warnings about inconsistent indenting Himanshu Madhani
2017-02-02 19:42 ` [PATCH 13/15] qla2xxx: Add async new target notification Himanshu Madhani
2017-02-02 19:42 ` [PATCH 14/15] qla2xxx: Fix sess_lock & hardware_lock lock order problem Himanshu Madhani
2017-02-02 19:42 ` [PATCH 15/15] qla2xxx: Update driver version to 9.00.00.00-k Himanshu Madhani
2017-02-03 16:26 ` [PATCH 00/15] qla2xxx: Bug Fixes and updates for target Bart Van Assche
2017-02-03 17:25   ` Madhani, Himanshu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1486064558-365-8-git-send-email-himanshu.madhani@cavium.com \
    --to=himanshu.madhani@cavium.com \
    --cc=Bart.VanAssche@sandisk.com \
    --cc=giridhar.malavali@cavium.com \
    --cc=hch@infradead.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=nab@linux-iscsi.org \
    --cc=target-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.