diff --git a/inc/saiport.h b/inc/saiport.h index f062965d91..4d5598a601 100644 --- a/inc/saiport.h +++ b/inc/saiport.h @@ -2151,6 +2151,14 @@ typedef enum _sai_port_attr_t */ SAI_PORT_ATTR_FABRIC_ISOLATE, + /** + * @brief Query the maximum number of errors the current FEC can detect. + * + * @type sai_uint32_t + * @flags READ_ONLY + */ + SAI_PORT_ATTR_MAX_FEC_ERRORS_DETECTABLE, + /** * @brief End of attributes */ @@ -2749,6 +2757,68 @@ typedef enum _sai_port_stat_t /** Fabric port stat out data units */ SAI_PORT_STAT_IF_OUT_FABRIC_DATA_UNITS, + /** + * @brief Port FEC codeword symbol error counters. + * + * This set of counters corresponds to number of errors each FEC codeword + * received on the port. + * + * The number of errors that may be detected is dependent on the type of FEC + * in use. For instance, RS-528 FEC supports detection of up to 7 errors, + * while RS-544 FEC supports detection of up to 15 errors. The maximum + * number of errors that can be detected by the port's current FEC mode may + * be retrieved via the SAI_PORT_ATTR_MAX_FEC_ERRORS_DETECTABLE port + * attribute. + */ + + /** Count of FEC codewords with no symbol errors. */ + SAI_PORT_STAT_IF_IN_FEC_CODEWORD_ERRORS_S0, + + /** Count of FEC codewords with 1 symbol error. */ + SAI_PORT_STAT_IF_IN_FEC_CODEWORD_ERRORS_S1, + + /** Count of FEC codewords with 2 symbol errors. */ + SAI_PORT_STAT_IF_IN_FEC_CODEWORD_ERRORS_S2, + + /** Count of FEC codewords with 3 symbol errors. */ + SAI_PORT_STAT_IF_IN_FEC_CODEWORD_ERRORS_S3, + + /** Count of FEC codewords with 4 symbol errors. */ + SAI_PORT_STAT_IF_IN_FEC_CODEWORD_ERRORS_S4, + + /** Count of FEC codewords with 5 symbol errors. */ + SAI_PORT_STAT_IF_IN_FEC_CODEWORD_ERRORS_S5, + + /** Count of FEC codewords with 6 symbol errors. */ + SAI_PORT_STAT_IF_IN_FEC_CODEWORD_ERRORS_S6, + + /** Count of FEC codewords with 7 symbol errors. */ + SAI_PORT_STAT_IF_IN_FEC_CODEWORD_ERRORS_S7, + + /** Count of FEC codewords with 8 symbol errors. */ + SAI_PORT_STAT_IF_IN_FEC_CODEWORD_ERRORS_S8, + + /** Count of FEC codewords with 9 symbol errors. */ + SAI_PORT_STAT_IF_IN_FEC_CODEWORD_ERRORS_S9, + + /** Count of FEC codewords with 10 symbol errors. */ + SAI_PORT_STAT_IF_IN_FEC_CODEWORD_ERRORS_S10, + + /** Count of FEC codewords with 11 symbol errors. */ + SAI_PORT_STAT_IF_IN_FEC_CODEWORD_ERRORS_S11, + + /** Count of FEC codewords with 12 symbol errors. */ + SAI_PORT_STAT_IF_IN_FEC_CODEWORD_ERRORS_S12, + + /** Count of FEC codewords with 13 symbol errors. */ + SAI_PORT_STAT_IF_IN_FEC_CODEWORD_ERRORS_S13, + + /** Count of FEC codewords with 14 symbol errors. */ + SAI_PORT_STAT_IF_IN_FEC_CODEWORD_ERRORS_S14, + + /** Count of FEC codewords with 15 symbol errors. */ + SAI_PORT_STAT_IF_IN_FEC_CODEWORD_ERRORS_S15, + /** Port stat in drop reasons range start */ SAI_PORT_STAT_IN_DROP_REASON_RANGE_BASE = 0x00001000, diff --git a/meta/aspell.en.pws b/meta/aspell.en.pws index 05b0cd5743..051055dfb6 100644 --- a/meta/aspell.en.pws +++ b/meta/aspell.en.pws @@ -21,6 +21,8 @@ Callee chardata checksum childs +codeword +codewords const couldn cpp