Skip to content

Conversation

@arlakshm
Copy link
Contributor

What I did
This PR updates bufferorch logic for VOQ-based systems to:

Stop performing per-queue port reference counting when applying buffer queue configurations on VOQ switches (system ports are static and do not require dynamic ref tracking).
Correct the appl DB key transformation for VOQ buffer ready list initialization to use the standard delimiter consistently instead of mixing config_db_key_delimiter and delimiter.
Why I did it
To avoid ref count issues when there is port speed change

How I verified it

Details if related

Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <[email protected]>
Copilot AI review requested due to automatic review settings November 23, 2025 11:29
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@arlakshm arlakshm changed the title ignore ref counting for buffer queue for voq systems [chassis][voq] ignore ref counting for buffer queue for voq systems Nov 23, 2025
Copilot finished reviewing on behalf of arlakshm November 23, 2025 11:31
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR optimizes buffer orchestration for VOQ-based systems by eliminating unnecessary port reference counting operations and fixing a key delimiter bug. VOQ switches use static system ports that don't require dynamic reference tracking, so skipping these operations avoids ref count issues during port speed changes.

Key Changes:

  • Fixed APPL_DB key construction in initVoqBufferReadyList to use correct delimiter consistently
  • Wrapped queue buffer ref counting logic with VOQ switch type check to skip for VOQ systems

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <[email protected]>
@mssonicbld
Copy link
Collaborator

/azp run

Co-authored-by: Copilot <[email protected]>
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@prsunny prsunny requested a review from tjchadaga November 24, 2025 22:13
@arlakshm
Copy link
Contributor Author

@ysmanman and @saksarav-nokia for viz...

@vmittal-msft
Copy link
Contributor

@arlakshm please rebase.

@arlakshm
Copy link
Contributor Author

@prsunny, can you please help signoff on this PR

@rlhui
Copy link
Contributor

rlhui commented Dec 6, 2025

please rebase

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

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

6 participants