Skip to content

Commit 8bc6c3a

Browse files
dot3 Stats collection
RFC1284 defines dot3 stats that most switch vendors support. This RFC was superceded by RFC3635 which includes 64bit "HC" counters. We need to collect these statistics for use by sonic_snmpagent. Signed-off-by: Brad House <[email protected]>
1 parent bc750a5 commit 8bc6c3a

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

orchagent/portsorch.cpp

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,20 @@ const vector<sai_port_stat_t> port_stat_ids =
255255
SAI_PORT_STAT_IF_IN_FEC_CODEWORD_ERRORS_S13,
256256
SAI_PORT_STAT_IF_IN_FEC_CODEWORD_ERRORS_S14,
257257
SAI_PORT_STAT_IF_IN_FEC_CODEWORD_ERRORS_S15,
258-
SAI_PORT_STAT_IF_IN_FEC_CORRECTED_BITS
258+
SAI_PORT_STAT_IF_IN_FEC_CORRECTED_BITS,
259+
SAI_PORT_STAT_DOT3_STATS_ALIGNMENT_ERRORS,
260+
SAI_PORT_STAT_DOT3_STATS_FCS_ERRORS,
261+
SAI_PORT_STAT_DOT3_STATS_SINGLE_COLLISION_FRAMES,
262+
SAI_PORT_STAT_DOT3_STATS_MULTIPLE_COLLISION_FRAMES,
263+
SAI_PORT_STAT_DOT3_STATS_SQE_TEST_ERRORS,
264+
SAI_PORT_STAT_DOT3_STATS_DEFERRED_TRANSMISSIONS,
265+
SAI_PORT_STAT_DOT3_STATS_LATE_COLLISIONS,
266+
SAI_PORT_STAT_DOT3_STATS_EXCESSIVE_COLLISIONS,
267+
SAI_PORT_STAT_DOT3_STATS_INTERNAL_MAC_TRANSMIT_ERRORS,
268+
SAI_PORT_STAT_DOT3_STATS_CARRIER_SENSE_ERRORS,
269+
SAI_PORT_STAT_DOT3_STATS_FRAME_TOO_LONGS,
270+
SAI_PORT_STAT_DOT3_STATS_INTERNAL_MAC_RECEIVE_ERRORS,
271+
SAI_PORT_STAT_DOT3_STATS_SYMBOL_ERRORS
259272
};
260273

261274
const vector<sai_port_stat_t> gbport_stat_ids =

0 commit comments

Comments
 (0)