summaryrefslogtreecommitdiff
path: root/include/scsi
diff options
context:
space:
mode:
authorVasu Dev <vasu.dev@intel.com>2012-05-25 21:26:48 +0400
committerJames Bottomley <JBottomley@Parallels.com>2012-07-20 11:31:48 +0400
commit0f02a6652803235a4893c7b01dd6eab862a913ec (patch)
tree21c80b2f5778a620da6c3e2599b6deee8e459ec0 /include/scsi
parent1bd49b482077e231842352621169dedff1f41931 (diff)
downloadlinux-0f02a6652803235a4893c7b01dd6eab862a913ec.tar.xz
[SCSI] libfc: adds FCP failures stats
Adds stats to track FCP pkt and frame alloc failure. Signed-off-by: Vasu Dev <vasu.dev@intel.com> Acked-by : Robert Love <robert.w.love@intel.com> Tested-by: Ross Brattain <ross.b.brattain@intel.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'include/scsi')
-rw-r--r--include/scsi/libfc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/scsi/libfc.h b/include/scsi/libfc.h
index ea52ca203c95..f257a74e6de4 100644
--- a/include/scsi/libfc.h
+++ b/include/scsi/libfc.h
@@ -232,6 +232,9 @@ struct fc_rport_priv {
* @RxWords: Number of received words
* @ErrorFrames: Number of received error frames
* @DumpedFrames: Number of dumped frames
+ * @FcpPktAllocFails: Number of fcp packet allocation failures
+ * @FcpPktAborts: Number of fcp packet aborts
+ * @FcpFrameAllocFails: Number of fcp frame allocation failures
* @LinkFailureCount: Number of link failures
* @LossOfSignalCount: Number for signal losses
* @InvalidTxWordCount: Number of invalid transmitted words
@@ -252,6 +255,9 @@ struct fc_stats {
u64 RxWords;
u64 ErrorFrames;
u64 DumpedFrames;
+ u64 FcpPktAllocFails;
+ u64 FcpPktAborts;
+ u64 FcpFrameAllocFails;
u64 LinkFailureCount;
u64 LossOfSignalCount;
u64 InvalidTxWordCount;