Skip to content

Flex Counter Phase 2 - Port Serdes Attributes#1150

Open
prajjwal-arista wants to merge 1 commit intosonic-net:masterfrom
prajjwal-arista:flex_counter_phase2_port_serdes_attr
Open

Flex Counter Phase 2 - Port Serdes Attributes#1150
prajjwal-arista wants to merge 1 commit intosonic-net:masterfrom
prajjwal-arista:flex_counter_phase2_port_serdes_attr

Conversation

@prajjwal-arista
Copy link

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'}

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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'}

Signed-off-by: Prajjwal Singh <prajjwal@arista.com>
@prajjwal-arista prajjwal-arista force-pushed the flex_counter_phase2_port_serdes_attr branch from a6a848c to c3ed5c2 Compare February 17, 2026 04:41
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@sdszhang sdszhang requested a review from prgeor February 19, 2026 06:29
@prajjwal-arista
Copy link
Author

@prgeor
Can you please help re-run the failing jobs (i don't have access), as the job failures don't seem to be related to my changes.

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.

3 participants