Skip to content

[FEC] Enable FEC statistics collection for Ethernet ports#1994

Merged
prgeor merged 1 commit intosonic-net:masterfrom
prgeor:fecstats
Nov 2, 2021
Merged

[FEC] Enable FEC statistics collection for Ethernet ports#1994
prgeor merged 1 commit intosonic-net:masterfrom
prgeor:fecstats

Conversation

@prgeor
Copy link
Contributor

@prgeor prgeor commented Oct 28, 2021

What I did
Added FEC correctable, uncorrectable and symbol errors to the list of statistics collected for a port by the flex counter.

Why I did it
To added CLI support to show fec related counters. Currently, Broadcom has enabled fec counters in their SDK.

How I verified it
Ensured the FEC counters are present in counter table:-

root@str-s6000-acs-01:~# redis-cli -n 2 hgetall "COUNTERS:oid:0x1000000000002" | grep FEC
SAI_PORT_STAT_IF_IN_FEC_CORRECTABLE_FRAMES
SAI_PORT_STAT_IF_IN_FEC_NOT_CORRECTABLE_FRAMES
root@str-s6000-acs-01:~#

@prgeor prgeor requested a review from prsunny as a code owner October 28, 2021 17:07
SAI_PORT_STAT_ETHER_STATS_FRAGMENTS,
SAI_PORT_STAT_ETHER_STATS_UNDERSIZE_PKTS,
SAI_PORT_STAT_IP_IN_RECEIVES
SAI_PORT_STAT_IP_IN_RECEIVES,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if the platform/sai does not support this counter, does it throw error or gracefully handled?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@prgeor prgeor merged commit e92c1df into sonic-net:master Nov 2, 2021
EdenGri pushed a commit to EdenGri/sonic-swss that referenced this pull request Feb 28, 2022
…kages with YANG model (sonic-net#1650)" (sonic-net#1972)" (sonic-net#1994)

This reverts commit fe00bbf.

- What I did
Revert previous revert, since the proposed fix has been merged - sonic-net/sonic-buildimage#9587

- How I did it
Revert the revert.

- How to verify it
Run build an on the switch.
Janetxxx pushed a commit to Janetxxx/sonic-swss that referenced this pull request Nov 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants