How to validate RoCE v2 PFC settings with PowerShell?

Vikram Singh 60 Reputation points
2026-08-06T03:47:27.1133333+00:00

How to validate RoCE v2 PFC settings with PowerShell?

Windows for business | Windows 365 Enterprise
0 comments No comments

1 answer

Sort by: Most helpful
  1. Harry Phan 27,485 Reputation points Independent Advisor
    2026-08-06T04:42:57.27+00:00

    Use PowerShell to verify that the RoCE traffic priority is mapped to a lossless class and that PFC is enabled on the switches and NICs:

    Get-NetQosPolicy

    Get-NetQosTrafficClass

    Get-NetQosFlowControl

    You should see the RoCE priority (commonly 3) mapped to a traffic class and PFC enabled for that priority.

    Validate the RDMA adapters are active:

    Get-NetAdapterRdma

    Get-SmbClientNetworkInterface

    Then generate RDMA traffic and monitor for pauses or drops:

    Get-NetAdapterStatistics

    Get-Counter "\RDMA Activity()"

    If the RDMA adapter is enabled, the QoS priority matches the traffic class, and PFC is enabled on the same priority end-to-end (host and switch), your RoCE v2 PFC configuration is generally considered valid. For deeper validation, compare pause-frame counters on both the NIC and switch ports during sustained RDMA traffic.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.