diff options
author | Yi Zou <yi.zou@intel.com> | 2009-11-20 17:55:14 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-12-04 13:01:57 -0500 |
commit | b21a0c397eea722ff84bbeaf5e6e732a06b69896 (patch) | |
tree | 736c84675049a6194b044e3ecdecbffb34ba6a50 /include | |
parent | f3da80e76142d63a6849556461906fbe118d1442 (diff) |
[SCSI] libfc: add fcoe_fc_els_lesb to fc_fcoe.h for FC-BB-5 LESB definitions
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/scsi/fc/fc_fcoe.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/scsi/fc/fc_fcoe.h b/include/scsi/fc/fc_fcoe.h index ccb3dbe90463..e6ad3d2ae475 100644 --- a/include/scsi/fc/fc_fcoe.h +++ b/include/scsi/fc/fc_fcoe.h | |||
@@ -86,6 +86,18 @@ struct fcoe_crc_eof { | |||
86 | #define FCOE_MIN_FRAME 46 | 86 | #define FCOE_MIN_FRAME 46 |
87 | 87 | ||
88 | /* | 88 | /* |
89 | * FCoE Link Error Status Block: T11 FC-BB-5 Rev2.0, Clause 7.10. | ||
90 | */ | ||
91 | struct fcoe_fc_els_lesb { | ||
92 | __be32 lesb_link_fail; /* link failure count */ | ||
93 | __be32 lesb_vlink_fail; /* virtual link failure count */ | ||
94 | __be32 lesb_miss_fka; /* missing FIP keep-alive count */ | ||
95 | __be32 lesb_symb_err; /* symbol error during carrier count */ | ||
96 | __be32 lesb_err_block; /* errored block count */ | ||
97 | __be32 lesb_fcs_error; /* frame check sequence error count */ | ||
98 | }; | ||
99 | |||
100 | /* | ||
89 | * fc_fcoe_set_mac - Store OUI + DID into MAC address field. | 101 | * fc_fcoe_set_mac - Store OUI + DID into MAC address field. |
90 | * @mac: mac address to be set | 102 | * @mac: mac address to be set |
91 | * @did: fc dest id to use | 103 | * @did: fc dest id to use |