Skip to content

Commit 6580bbd

Browse files
yizouJames Bottomley
authored andcommitted
[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>
1 parent 859b7b6 commit 6580bbd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎include/scsi/libfc.h‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,8 @@ struct fc_rport_priv {
231231
* @ControlRequests: Number of control requests
232232
* @InputMegabytes: Number of received megabytes
233233
* @OutputMegabytes: Number of transmitted megabytes
234+
* @VLinkFailureCount: Number of virtual link failures
235+
* @MissDiscAdvCount: Number of missing FIP discovery advertisement
234236
*/
235237
struct fcoe_dev_stats {
236238
u64 SecondsSinceLastReset;
@@ -249,6 +251,8 @@ struct fcoe_dev_stats {
249251
u64 ControlRequests;
250252
u64 InputMegabytes;
251253
u64 OutputMegabytes;
254+
u64 VLinkFailureCount;
255+
u64 MissDiscAdvCount;
252256
};
253257

254258
/**

0 commit comments

Comments
 (0)