Skip to content

Add PFC historical statistics estimation to the PFCWD Orch#3533

Merged
prsunny merged 2 commits intosonic-net:masterfrom
peterbailey-arista:pfc-stat-history-orch
Aug 21, 2025
Merged

Add PFC historical statistics estimation to the PFCWD Orch#3533
prsunny merged 2 commits intosonic-net:masterfrom
peterbailey-arista:pfc-stat-history-orch

Conversation

@peterbailey-arista
Copy link
Contributor

@peterbailey-arista peterbailey-arista commented Feb 25, 2025

pfcwdorch has been updated to allow pfc historical statistic estimation. The orch allows the feature to be enabled or disabled and the pfc_detect_broadcom.lua script will perform the estimation and update counters_db for ports that tracking is enabled on.

This implementation was made in accordance with comments from the community HLD review
https://zoom.us/rec/share/jWkZRs51QULsDQvrSlm-5qC4OZ3gkG6RVdB2k_vqwgLcnezsaG1XtX5Aqk6xBYCZ.YMhHymrP4jbpkLbm

HLD: sonic-net/SONiC#1903

What I did
Edited the pfcwdorch and the pfc_detect_broadcom.lua to allow enable/disable-able PFC statistical history tracking.

Why I did it
Part of the PFC Historical Statistics Feature: sonic-net/SONiC#1904

How I verified it

  • New Unit tests added for the pfcwdorch to ensure it correctly enables the feature
  • Manual testing was performed on a SONiC switch to verify that the script and orchagent worked as expected when receiving generated pause frames

Details if related

@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).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@peterbailey-arista peterbailey-arista changed the title Add new "PFC History Orch" for PFC historical statistics Add PFC historical statistics estimation to the PFCWD Orch Apr 9, 2025
@peterbailey-arista peterbailey-arista marked this pull request as ready for review April 9, 2025 00:39
@peterbailey-arista
Copy link
Contributor Author

/azpw run Azure.sonic-swss

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-swss

@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).

@peterbailey-arista
Copy link
Contributor Author

/azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command.

@peterbailey-arista
Copy link
Contributor Author

/azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-buildimage

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@peterbailey-arista
Copy link
Contributor Author

/azpw run Azure.sonic-swss

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-swss

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@peterbailey-arista
Copy link
Contributor Author

peterbailey-arista commented Jul 14, 2025

A reminder that this change goes alongside
sonic-net/sonic-buildimage#21848
sonic-net/sonic-utilities#3778
sonic-net/sonic-utilities#3779 [these three PRs have merged, thanks @vmittal-msft !!]

while the change is not dependent on these PRs, full functioning of the feature will require them as well 🙂

HLD has merged: sonic-net/SONiC#1903
Tracking issue for more info: sonic-net/SONiC#1904

@peterbailey-arista
Copy link
Contributor Author

@kperumalbfn @vmittal-msft @dgsudharsan Poking again for a review when possible. This is the final open PR for the PFC stat history feature. Thanks!

@vmittal-msft
Copy link
Contributor

LGTM. Please rebase. Please share if this has been tested on ToR or chassis systems ?

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@peterbailey-arista
Copy link
Contributor Author

LGTM. Please rebase. Please share if this has been tested on ToR or chassis systems ?

Thanks Vineet, rebased.
Testing was done on both fixed boxes and modular chassis

@peterbailey-arista
Copy link
Contributor Author

/azpw run Azure.sonic-swss

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-swss

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@peterbailey-arista
Copy link
Contributor Author

@vmittal-msft I can't get the pipeline checks to start, can you help? The change was rebased and I tried the usual azpw command without success.

Thanks!

@wangxin
Copy link
Contributor

wangxin commented Aug 18, 2025

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

The pfc_detect_broadcom.lua platform script can estimate PFC stat
history when enabled. The PFCWD orchagent is updated to handle
configuring history to enabled or disabled.
Coverage for pfc_stat_history toggle configuration.
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@peterbailey-arista
Copy link
Contributor Author

LGTM. Please rebase. Please share if this has been tested on ToR or chassis systems ?

@vmittal-msft Rebased with passing pipeline runs! 😄

Copy link
Collaborator

@prsunny prsunny left a comment

Choose a reason for hiding this comment

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

approving for merge

@prsunny prsunny merged commit f76e3f1 into sonic-net:master Aug 21, 2025
15 checks passed
a114j0y pushed a commit to a114j0y/sonic-swss that referenced this pull request Aug 28, 2025
…#3533)

pfcwdorch has been updated to allow pfc historical statistic estimation. The orch allows the feature to be enabled or disabled and the pfc_detect_broadcom.lua script will perform the estimation and update counters_db for ports that tracking is enabled on.

This implementation was made in accordance with comments from the community HLD review
https://zoom.us/rec/share/jWkZRs51QULsDQvrSlm-5qC4OZ3gkG6RVdB2k_vqwgLcnezsaG1XtX5Aqk6xBYCZ.YMhHymrP4jbpkLbm

HLD: sonic-net/SONiC#1903

What I did
Edited the pfcwdorch and the pfc_detect_broadcom.lua to allow enable/disable-able PFC statistical history tracking.

Why I did it
Part of the PFC Historical Statistics Feature: sonic-net/SONiC#1904
a114j0y added a commit to a114j0y/sonic-swss that referenced this pull request Aug 28, 2025
* upstream/master:
  [ssw][ha] set `SAI_HA_SCOPE_ATTR_ADMIN_STATE`   (sonic-net#3841)
  Fix DPU restart message drop by Zmq lazy bind. (sonic-net#3837)
  [ssw][ha] consume new ha_scope fields (sonic-net#3825)
  Add PFC historical statistics estimation to the PFCWD Orch (sonic-net#3533)
a114j0y added a commit to a114j0y/sonic-swss that referenced this pull request Aug 28, 2025
* upstream/master:
  [ssw][ha] set `SAI_HA_SCOPE_ATTR_ADMIN_STATE`   (sonic-net#3841)
  Fix DPU restart message drop by Zmq lazy bind. (sonic-net#3837)
  [ssw][ha] consume new ha_scope fields (sonic-net#3825)
  Add PFC historical statistics estimation to the PFCWD Orch (sonic-net#3533)
a114j0y pushed a commit to a114j0y/sonic-swss that referenced this pull request Aug 29, 2025
…#3533)

pfcwdorch has been updated to allow pfc historical statistic estimation. The orch allows the feature to be enabled or disabled and the pfc_detect_broadcom.lua script will perform the estimation and update counters_db for ports that tracking is enabled on.

This implementation was made in accordance with comments from the community HLD review
https://zoom.us/rec/share/jWkZRs51QULsDQvrSlm-5qC4OZ3gkG6RVdB2k_vqwgLcnezsaG1XtX5Aqk6xBYCZ.YMhHymrP4jbpkLbm

HLD: sonic-net/SONiC#1903

What I did
Edited the pfcwdorch and the pfc_detect_broadcom.lua to allow enable/disable-able PFC statistical history tracking.

Why I did it
Part of the PFC Historical Statistics Feature: sonic-net/SONiC#1904
Janetxxx pushed a commit to Janetxxx/sonic-swss that referenced this pull request Nov 10, 2025
…#3533)

pfcwdorch has been updated to allow pfc historical statistic estimation. The orch allows the feature to be enabled or disabled and the pfc_detect_broadcom.lua script will perform the estimation and update counters_db for ports that tracking is enabled on.

This implementation was made in accordance with comments from the community HLD review
https://zoom.us/rec/share/jWkZRs51QULsDQvrSlm-5qC4OZ3gkG6RVdB2k_vqwgLcnezsaG1XtX5Aqk6xBYCZ.YMhHymrP4jbpkLbm

HLD: sonic-net/SONiC#1903

What I did
Edited the pfcwdorch and the pfc_detect_broadcom.lua to allow enable/disable-able PFC statistical history tracking.

Why I did it
Part of the PFC Historical Statistics Feature: sonic-net/SONiC#1904
balanokia pushed a commit to balanokia/sonic-swss that referenced this pull request Nov 17, 2025
…#3533)

pfcwdorch has been updated to allow pfc historical statistic estimation. The orch allows the feature to be enabled or disabled and the pfc_detect_broadcom.lua script will perform the estimation and update counters_db for ports that tracking is enabled on.

This implementation was made in accordance with comments from the community HLD review
https://zoom.us/rec/share/jWkZRs51QULsDQvrSlm-5qC4OZ3gkG6RVdB2k_vqwgLcnezsaG1XtX5Aqk6xBYCZ.YMhHymrP4jbpkLbm

HLD: sonic-net/SONiC#1903

What I did
Edited the pfcwdorch and the pfc_detect_broadcom.lua to allow enable/disable-able PFC statistical history tracking.

Why I did it
Part of the PFC Historical Statistics Feature: sonic-net/SONiC#1904
theasianpianist pushed a commit to theasianpianist/sonic-swss that referenced this pull request Feb 4, 2026
…#3533)

pfcwdorch has been updated to allow pfc historical statistic estimation. The orch allows the feature to be enabled or disabled and the pfc_detect_broadcom.lua script will perform the estimation and update counters_db for ports that tracking is enabled on.

This implementation was made in accordance with comments from the community HLD review
https://zoom.us/rec/share/jWkZRs51QULsDQvrSlm-5qC4OZ3gkG6RVdB2k_vqwgLcnezsaG1XtX5Aqk6xBYCZ.YMhHymrP4jbpkLbm

HLD: sonic-net/SONiC#1903

What I did
Edited the pfcwdorch and the pfc_detect_broadcom.lua to allow enable/disable-able PFC statistical history tracking.

Why I did it
Part of the PFC Historical Statistics Feature: sonic-net/SONiC#1904

Signed-off-by: Lawrence Lee <[email protected]>
baorliu pushed a commit to baorliu/sonic-swss that referenced this pull request Feb 23, 2026
…#3533)

pfcwdorch has been updated to allow pfc historical statistic estimation. The orch allows the feature to be enabled or disabled and the pfc_detect_broadcom.lua script will perform the estimation and update counters_db for ports that tracking is enabled on.

This implementation was made in accordance with comments from the community HLD review
https://zoom.us/rec/share/jWkZRs51QULsDQvrSlm-5qC4OZ3gkG6RVdB2k_vqwgLcnezsaG1XtX5Aqk6xBYCZ.YMhHymrP4jbpkLbm

HLD: sonic-net/SONiC#1903

What I did
Edited the pfcwdorch and the pfc_detect_broadcom.lua to allow enable/disable-able PFC statistical history tracking.

Why I did it
Part of the PFC Historical Statistics Feature: sonic-net/SONiC#1904

Signed-off-by: Baorong Liu <[email protected]>
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.

5 participants