aboutsummaryrefslogtreecommitdiffstats
path: root/include/scsi/libfc.h
diff options
context:
space:
mode:
authorYi Zou <yi.zou@intel.com>2009-11-20 17:54:52 -0500
committerJames Bottomley <James.Bottomley@suse.de>2009-12-04 13:01:55 -0500
commit6580bbd0afe6ba1be5d53b331e92a7690046c923 (patch)
treea628a6ce7c52634cced5957d57a979338ce102f3 /include/scsi/libfc.h
parent859b7b649ab58ee5cbfb761491317d5b315c1b0f (diff)
[SCSI] libfc: add FC-BB-5 LESB counters to fcoe_dev_stats
FC-BB-5 Rev2.0, Clause 7.10 extends the FC-LS-3 LESB for FC-BB_E. We are already tracking Link Failure Count so add the rest in this patch. For VLinkFailureCount and MissDiscAdvCount, they are part of the per-cpu fcoe_dev_stats. For SymbolErrorCount, ErroredBlockCount, and FCSErrorCount, they are defined in IEEE 802.3-2008 and are per LLD. They are expected to come from LLD. Signed-off-by: Yi Zou <yi.zou@intel.com> Signed-off-by: Robert Love <robert.w.love@intel.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'include/scsi/libfc.h')
-rw-r--r--include/scsi/libfc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/scsi/libfc.h b/include/scsi/libfc.h
index 2936fbae41e4..b97be2903cbc 100644
--- a/include/scsi/libfc.h
+++ b/include/scsi/libfc.h
@@ -231,6 +231,8 @@ struct fc_rport_priv {
231 * @ControlRequests: Number of control requests 231 * @ControlRequests: Number of control requests
232 * @InputMegabytes: Number of received megabytes 232 * @InputMegabytes: Number of received megabytes
233 * @OutputMegabytes: Number of transmitted megabytes 233 * @OutputMegabytes: Number of transmitted megabytes
234 * @VLinkFailureCount: Number of virtual link failures
235 * @MissDiscAdvCount: Number of missing FIP discovery advertisement
234 */ 236 */
235struct fcoe_dev_stats { 237struct fcoe_dev_stats {
236 u64 SecondsSinceLastReset; 238 u64 SecondsSinceLastReset;
@@ -249,6 +251,8 @@ struct fcoe_dev_stats {
249 u64 ControlRequests; 251 u64 ControlRequests;
250 u64 InputMegabytes; 252 u64 InputMegabytes;
251 u64 OutputMegabytes; 253 u64 OutputMegabytes;
254 u64 VLinkFailureCount;
255 u64 MissDiscAdvCount;
252}; 256};
253 257
254/** 258/**