Skip to content

Conversation

@saksarav-nokia
Copy link
Contributor

What I did
Remove the Old Port Object Id, Queue id, PG id from COUNTER_DB when the Port is removed. Add the new Port Object Id, Queue Id, PG Id in COUNTER_DB when the Port is created. The tables COUNTERS_QUEUE_PORT_MAP, COUNTERS_PG_PORT_MAP, COUNTERS_PG_INDEX_MAP, COUNTERS_PG_NAME_MAP are updated.
Fixed the issue reported in sonic-net/sonic-buildimage#24385

Why I did it
When the Port Speed is changed via GCU patch, the orchagent removes the Port from SAI and creates the Port in SAI. So the Port Object id changes and the COUNTER_DB was not updated with the new Port Object Id in the above tables.
How I verified it
Verified all the show and clear commands which are related to Port, Queue , PG etc after GCU patch
Details if related

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@saksarav-nokia
Copy link
Contributor Author

@arlakshm @vmittal-msft @deepak-singhal0408 @rlhui for viz
I will open it for review after completing some basic testing in master. we have tested in msft-2405 and it is working.

…moved and created when the Port Speed is changed dynamically via GCU

Signed-off-by: saksarav <[email protected]>
@saksarav-nokia saksarav-nokia force-pushed the saksarav-nokia-GCU-counter-db branch from d402386 to a13a1a1 Compare November 10, 2025 13:55
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@vmittal-msft vmittal-msft self-requested a review November 11, 2025 01:18
@abdosi abdosi self-requested a review November 12, 2025 18:09
@abdosi
Copy link
Contributor

abdosi commented Nov 12, 2025

@anamehra for viz.

@saksarav-nokia
Copy link
Contributor Author

Verified in master

@saksarav-nokia saksarav-nokia marked this pull request as ready for review November 12, 2025 19:22
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@saksarav-nokia
Copy link
Contributor Author

Created Azure/sonic-swss.msft#168 for msft-2405

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants