Skip to content

[Hw PFCWD feature] Skeleton hw pfcwd#4403

Open
abhishek-nexthop wants to merge 3 commits intosonic-net:masterfrom
nexthop-ai:skeleton-hw-pfcwd
Open

[Hw PFCWD feature] Skeleton hw pfcwd#4403
abhishek-nexthop wants to merge 3 commits intosonic-net:masterfrom
nexthop-ai:skeleton-hw-pfcwd

Conversation

@abhishek-nexthop
Copy link
Copy Markdown

What I did
Added hardware-based PFC watchdog support with SKU-specific enablement. Created PfcWdHwOrch skeleton class that inherits from PfcWdBaseOrch, refactored shared functionality into the base class, and implemented runtime SKU detection to automatically choose between hardware and software watchdog implementations.

Why I did it
Modern switch ASICs support hardware-based PFC deadlock detection/recovery which is more efficient than software-based approaches. Need infrastructure to:
• Enable hardware watchdog only on supported SKUs
• Share common code between software and hardware implementations
• Gracefully fall back to software watchdog on unsupported platforms

How I verified it

  1. Code compiles successfully with new files added to Makefile
  2. SKU detection logic correctly identifies supported hardware:
    • Check logs: grep "PFC hardware watchdog" /var/log/syslog
    • Supported SKU shows: "HWSKU 'nh-4010' supports PFC hardware watchdog"
    • Unsupported SKU shows: "does not support PFC hardware watchdog"
  3. Correct watchdog instance created based on SKU and DLR init flag

Signed-off-by: Abhishek <abhishek@nexthop.ai>
… functions.

Signed-off-by: Abhishek <abhishek@nexthop.ai>
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@abhishek-nexthop abhishek-nexthop changed the title Skeleton hw pfcwd [Hw PFCWD feature] Skeleton hw pfcwd Mar 28, 2026
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: Abhishek <abhishek@nexthop.ai>
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

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.

2 participants