Skip to content

Support of attr SAI_QUEUE_ATTR_PFC_WD_RESTORATION_MODE - #2338

Open
gurugmarvell wants to merge 1 commit into
opencomputeproject:masterfrom
gurugmarvell:pfcwd_mode_attr
Open

Support of attr SAI_QUEUE_ATTR_PFC_WD_RESTORATION_MODE#2338
gurugmarvell wants to merge 1 commit into
opencomputeproject:masterfrom
gurugmarvell:pfcwd_mode_attr

Conversation

@gurugmarvell

Copy link
Copy Markdown

Motivation :
SAI currently supports the PFC Watchdog (PFC WD) feature on queues; however, it does not provide a mechanism to configure PFC deadlock recovery modes. This proposal addresses that limitation by introducing a new queue attribute that enables users to configure the desired recovery mode.

Changes:

inc/saiqueue.h

Added a new attribute: SAI_QUEUE_ATTR_PFC_WD_RESTORATION_MODE

Introduced the following restoration mode values:

SAI_QUEUE_PFC_WD_RESTORATION_MODE_AUTO
SAI_QUEUE_PFC_WD_RESTORATION_MODE_FORCE
SAI_QUEUE_PFC_WD_RESTORATION_MODE_MANUAL

The default restoration mode is SAI_QUEUE_PFC_WD_RESTORATION_MODE_AUTO.

Added a new attribute: SAI_QUEUE_ATTR_PFC_WD_MANUAL_RESTORATION_TRIGGER

Impact:
This enhancement allows SAI users to configure the PFC WD deadlock recovery behavior using one of three modes: Auto, Force, or Manual. The added flexibility enables users to select the recovery strategy that best aligns with their deployment and operational requirements.
When the PFC WD restoration mode is set to Manual, the user can trigger restoration by setting the new SAI attribute SAI_QUEUE_ATTR_PFC_WD_MANUAL_RESTORATION_TRIGGER to TRUE.

Signed-off-by: Guruprasad <ggopal@marvell.com>
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

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.

1 participant