Flex Counter Phase 2 - Port Serdes Attributes#1150
Open
prajjwal-arista wants to merge 1 commit intosonic-net:masterfrom
Open
Flex Counter Phase 2 - Port Serdes Attributes#1150prajjwal-arista wants to merge 1 commit intosonic-net:masterfrom
prajjwal-arista wants to merge 1 commit intosonic-net:masterfrom
Conversation
These changes are brought in sonic-swss-common to support the collection
of following attributes:
1 - SAI_PORT_SERDES_ATTR_RX_VGA (type : sai_u32_list_t)
2 - SAI_PORT_SERDES_ATTR_TX_FIR_TAPS_LIST (type : sai_taps_list_t )
(both under sai_port_serdes_attr_t)
Changes adds definion for:
1 - COUNTERS_PORT_SERDES_ID_TO_PORT_ID_MAP
It Stores the mapping between port-serdes-vid to port-vid.
This mapping is updated during port initialization, port
de-initialization, and also when port-serdes related config is changed
for a port.
We need to keep this mapping for PHY PORT SERDES ATTR counter collection
when syncd write to COUNTERS_DB::PORT_PHY_ATTR: to find appropriate
mapping from port-serdes-vid to port-vid.
ex: $ sonic-db-cli COUNTERS_DB hgetall "COUNTERS_PORT_SERDES_ID_TO_PORT_ID_MAP"
{'oid:0x57000000001696': 'oid:0x1000000000061', 'oid:0x57000000001697': 'oid:0x1000000000035', < … >}
2 - PORT_PHY_SERDES_ATTR_ID_LIST
Related to FLEX_COUNTER_DB::FLEX_COUNTER_TABLE:PORT_PHY_SERDES_ATTR: to
store the attributes that needs to be collected for each port.
ex: $ sonic-db-cli FLEX_COUNTER_DB hgetall "FLEX_COUNTER_TABLE:PORT_PHY_SERDES_ATTR:oid:0x5700000000170a"
{'PORT_PHY_SERDES_ATTR_ID_LIST': 'SAI_PORT_SERDES_ATTR_TX_FIR_TAPS_LIST,SAI_PORT_SERDES_ATTR_RX_VGA'}
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
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.
These changes are brought in sonic-swss-common to support the collection of following attributes:
1 - SAI_PORT_SERDES_ATTR_RX_VGA (type : sai_u32_list_t)
2 - SAI_PORT_SERDES_ATTR_TX_FIR_TAPS_LIST (type : sai_taps_list_t ) (both under sai_port_serdes_attr_t)
Changes adds definion for:
1 - COUNTERS_PORT_SERDES_ID_TO_PORT_ID_MAP
It Stores the mapping between port-serdes-vid to port-vid.
This mapping is updated during port initialization, port de-initialization, and also when port-serdes related config is changed for a port.
We need to keep this mapping for PHY PORT SERDES ATTR counter collection when syncd write to COUNTERS_DB::PORT_PHY_ATTR: to find appropriate mapping from port-serdes-vid to port-vid.
ex:
2 - PORT_PHY_SERDES_ATTR_ID_LIST
Related to FLEX_COUNTER_DB::FLEX_COUNTER_TABLE:PORT_PHY_SERDES_ATTR:
to store the attributes that needs to be collected for each port.
ex: