Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable pfcwd forward action config for cisco-8000. #1848

Merged
merged 1 commit into from
Sep 30, 2021
Merged

Disable pfcwd forward action config for cisco-8000. #1848

merged 1 commit into from
Sep 30, 2021

Conversation

alpeshspatel
Copy link
Contributor

  1. Disable pfcwd forward action config for cisco-8000.
  2. Do not configure pfcwd if pfc is not configured on a port

This PR is in association with: sonic-net/sonic-swss#1748 where PFC-WD forward action is disabled for cisco-8000 platform.

Signed-off-by: Alpesh S Patel [email protected]

What I did

There are two changes of interest:

  1. disables pfcwd forward action configuration from pfcwd command
  2. in the pfcwd script, adds a check to enable pfcwd configuration on a port only if it has pfc enabled. If config_db.json has an empty entry like: "pfc_enable" : "",
    and subsequently pfcwd is configured, swss/orchagent throws an error logs

How I did it

How to verify it

  1. can be verified on cisco-8000 platform. It is a no-op for other platforms
# pfcwd start -a forward 400 -r 400
SKIPPED: PFC WD 'forward' action not supported on asic 'cisco-8000'
  1. for a single port, in /etc/sonic/config_db.json, set no pfc enable bits by setting:
"pfc_enable" :  ""

for atleast 1 port.

without this change, see the logs in syslog. With this change, there will just be a log on console.

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

Do not configure pfcwd if pfc is not configured on a port

Signed-off-by: Alpesh S Patel <[email protected]>
@neethajohn neethajohn merged commit 81a8386 into sonic-net:202012 Sep 30, 2021
@alpeshspatel
Copy link
Contributor Author

@neethajohn Can you please double commit/cherry-pick to the master branch as well.

@alpeshspatel
Copy link
Contributor Author

@neethajohn Once you merge this in master, what is the process/cadence of putting that in azure sonic-buildimage/master.
Can you do the needful there or let me know the next step.

stepanblyschak pushed a commit to stepanblyschak/sonic-utilities that referenced this pull request Apr 18, 2022
d29a49a [ACL] Match TCP protocol while matching TCP_FLAG (sonic-net#1854)
2569ad9 Fix sFlow sampling-rate and admin-state (sonic-net#1728)
8908a8f Change rif_rates.lua and port_rates.lua scripts to calculate rates correct (sonic-net#1848)
b42c2fb [VS Test] Skip flaky tests (sonic-net#1875)

Signed-off-by: bingwang <[email protected]>
stepanblyschak pushed a commit to stepanblyschak/sonic-utilities that referenced this pull request Apr 18, 2022
* 647f01f 2021-09-30 | [fstrim] limit smartctl execution time to 30 seconds (sonic-net#1850) (HEAD -> 202012, github/202012) [Ying Xie]
* 371970e 2021-09-30 | [202012][show techsupport] address show techsupport return none zero code issue (sonic-net#1847) [Ying Xie]
* 81a8386 2021-09-30 | Disable pfcwd forward action config for cisco-8000. (sonic-net#1848) [Alpesh Patel]

Signed-off-by: Ying Xie <[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.

2 participants