[action] [PR:1674] Add PORT_PHY_ATTR flex counter support#1776
Open
mssonicbld wants to merge 2 commits intosonic-net:202511from
Open
[action] [PR:1674] Add PORT_PHY_ATTR flex counter support#1776mssonicbld wants to merge 2 commits intosonic-net:202511from
mssonicbld wants to merge 2 commits intosonic-net:202511from
Conversation
Implement PORT_PHY_ATTR flex counter support for monitoring the port attributes (RX_SIGNAL_DETECT, FEC_ALIGNMENT_LOCK, RX_SNR). ### Changes **meta/:** Add serialization support for PORT_SNR_LIST and PORT_LANE_LATCH_STATUS_LIST **syncd/:** Introduce PortAttrContext extending AttrContext with specialized data handling for lane-based attribute types **unittest/:** Add unit tests for serialization and collectData APIs. ### Implementation Queries SAI for per-port lane count using BUFFER_OVERFLOW pattern Maintains lane count cache for efficient memory allocation Writes collected data to dedicated PORT_PHY_ATTR table in COUNTERS_DB
Collaborator
Author
|
Original PR: #1674 |
Collaborator
Author
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Collaborator
Author
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
|
The PR checks need to be retriggered and run on latest code after merge of this commit sonic-net/sonic-swss-common@79b6b11 |
Contributor
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
|
Azure.sonic-sairedis (BuildAsan amd64)Failing after 24m — BuildAsan amd64 failed FYI, i've created a dummy PR(with same set of changes) to ensure all checks are passing. refer #1785 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implement PORT_PHY_ATTR flex counter support for monitoring the port attributes (RX_SIGNAL_DETECT, FEC_ALIGNMENT_LOCK, RX_SNR).
Changes
meta/: Add serialization support for PORT_SNR_LIST and PORT_LANE_LATCH_STATUS_LIST
syncd/: Introduce PortAttrContext extending AttrContext with specialized data handling for lane-based attribute types
unittest/: Add unit tests for serialization and collectData APIs.
Implementation
Queries SAI for per-port lane count using BUFFER_OVERFLOW pattern
Maintains lane count cache for efficient memory allocation
Writes collected data to dedicated PORT_PHY_ATTR table in COUNTERS_DB