Skip to content

Commit 0f3668f

Browse files
authored
Enable fabric counter for syncd's FlexCounter (#669)
New SAI version provides more counters for fabric ports. Extend the supported counter list to cover those counters. /** SAI port stat if in FEC correctable pkts */ SAI_PORT_STAT_IF_IN_FEC_CORRECTABLE_FRAMES, /** SAI port stat if in FEC not correctable pkts */ SAI_PORT_STAT_IF_IN_FEC_NOT_CORRECTABLE_FRAMES, /** SAI port stat if in FEC symbol errors */ SAI_PORT_STAT_IF_IN_FEC_SYMBOL_ERRORS, /** Fabric port stat in data units */ SAI_PORT_STAT_IF_IN_FABRIC_DATA_UNITS, /** Fabric port stat out data units */ SAI_PORT_STAT_IF_OUT_FABRIC_DATA_UNITS, /** Port stat in drop reasons range start */ SAI_PORT_STAT_IN_DROP_REASON_RANGE_BASE = 0x00001000, Signed-off-by: ngocdo <[email protected]>
1 parent 573d5c1 commit 0f3668f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syncd/FlexCounter.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1651,7 +1651,7 @@ void FlexCounter::updateSupportedPortCounters(
16511651

16521652
uint64_t value;
16531653

1654-
for (int id = SAI_PORT_STAT_IF_IN_OCTETS; id <= SAI_PORT_STAT_PFC_7_ON2OFF_RX_PKTS; ++id)
1654+
for (int id = SAI_PORT_STAT_IF_IN_OCTETS; id <= SAI_PORT_STAT_IF_OUT_FABRIC_DATA_UNITS; ++id)
16551655
{
16561656
sai_port_stat_t counter = static_cast<sai_port_stat_t>(id);
16571657

0 commit comments

Comments
 (0)