Skip to content

Commit

Permalink
[SCSI] libfc: add fcoe_fc_els_lesb to fc_fcoe.h for FC-BB-5 LESB defi…
Browse files Browse the repository at this point in the history
…nitions

Add struct fcoe_fc_els_lesb as described in FC-BB-5 LESB for FCoE. It has
the same size as LESB defined in FC-FS-3 (struct fc_els_lesb) but members
have different meanings according to FC-BB-5.

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>
  • Loading branch information
Yi Zou authored and James Bottomley committed Dec 4, 2009
1 parent f3da80e commit b21a0c3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions include/scsi/fc/fc_fcoe.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,18 @@ struct fcoe_crc_eof {
*/
#define FCOE_MIN_FRAME 46

/*
* FCoE Link Error Status Block: T11 FC-BB-5 Rev2.0, Clause 7.10.
*/
struct fcoe_fc_els_lesb {
__be32 lesb_link_fail; /* link failure count */
__be32 lesb_vlink_fail; /* virtual link failure count */
__be32 lesb_miss_fka; /* missing FIP keep-alive count */
__be32 lesb_symb_err; /* symbol error during carrier count */
__be32 lesb_err_block; /* errored block count */
__be32 lesb_fcs_error; /* frame check sequence error count */
};

/*
* fc_fcoe_set_mac - Store OUI + DID into MAC address field.
* @mac: mac address to be set
Expand Down

0 comments on commit b21a0c3

Please sign in to comment.