Skip to content

Commit 93a8789

Browse files
bhouse-nexthopYairRaviv
authored andcommitted
dot3 Stats collection (sonic-net#3615)
* dot3 Stats collection What I did Implement RFC3635 dot3 statistics collection. Used by sonic-net/sonic-snmpagent#350 Fixes sonic-net/sonic-buildimage#22359 Why I did it RFC1284 defines dot3 stats that most switch vendors support. This RFC was superseded by RFC3635 which includes 64bit "HC" counters. We need to collect these statistics for use by sonic_snmpagent.
1 parent 87866ef commit 93a8789

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
@@ -306,7 +306,20 @@ const vector<sai_port_stat_t> port_stat_ids =
306306
SAI_PORT_STAT_IF_IN_FEC_CORRECTED_BITS,
307307
SAI_PORT_STAT_TRIM_PACKETS,
308308
SAI_PORT_STAT_DROPPED_TRIM_PACKETS,
309-
SAI_PORT_STAT_TX_TRIM_PACKETS
309+
SAI_PORT_STAT_TX_TRIM_PACKETS,
310+
SAI_PORT_STAT_DOT3_STATS_ALIGNMENT_ERRORS,
311+
SAI_PORT_STAT_DOT3_STATS_FCS_ERRORS,
312+
SAI_PORT_STAT_DOT3_STATS_SINGLE_COLLISION_FRAMES,
313+
SAI_PORT_STAT_DOT3_STATS_MULTIPLE_COLLISION_FRAMES,
314+
SAI_PORT_STAT_DOT3_STATS_SQE_TEST_ERRORS,
315+
SAI_PORT_STAT_DOT3_STATS_DEFERRED_TRANSMISSIONS,
316+
SAI_PORT_STAT_DOT3_STATS_LATE_COLLISIONS,
317+
SAI_PORT_STAT_DOT3_STATS_EXCESSIVE_COLLISIONS,
318+
SAI_PORT_STAT_DOT3_STATS_INTERNAL_MAC_TRANSMIT_ERRORS,
319+
SAI_PORT_STAT_DOT3_STATS_CARRIER_SENSE_ERRORS,
320+
SAI_PORT_STAT_DOT3_STATS_FRAME_TOO_LONGS,
321+
SAI_PORT_STAT_DOT3_STATS_INTERNAL_MAC_RECEIVE_ERRORS,
322+
SAI_PORT_STAT_DOT3_STATS_SYMBOL_ERRORS
310323
};
311324

312325
const vector<sai_port_stat_t> gbport_stat_ids =

0 commit comments

Comments
 (0)