Skip to content

Commit 7a48ee4

Browse files
bhouse-nexthopbradh352
authored andcommitted
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 582eed0 commit 7a48ee4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

orchagent/portsorch.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,19 @@ const vector<sai_port_stat_t> port_stat_ids =
307307
SAI_PORT_STAT_TRIM_PACKETS,
308308
SAI_PORT_STAT_DROPPED_TRIM_PACKETS,
309309
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)