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

Enhance dynamic buffer calculation and bug fixes #1601

Merged
merged 2 commits into from
Jan 22, 2021

Conversation

stephenxs
Copy link
Collaborator

What I did
Enhance dynamic buffer calculation and bug fixes

Signed-off-by: Stephen Sun [email protected]
Why I did it

How I verified it
Run regression and vs test

Details if related

  • Remove make_pair when calling emplace_back.
  • The pool size isn't recalculated when a port with headroom-override but without speed or cable length configured being shutdown.
  • Remove the current PG from the old referenced profile only if its name isn't empty, otherwise, an entry with an empty name will be inserted into m_bufferProfileLookup
  • Don't try removing statically configured profiles with dynamic headroom from the APPL_DB because they were not programmed to APPL_DB.
  • Setting a buffer PG to the same profile as it was causes the referenced dynamic profile unable to be removed once it isn't referenced anymore

- Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012

- Remove make_pair when calling emplace_back.
- The pool size isn't recalculated when a port with headroom override but without speed or cable length configured being shutdown.
- Remove the current PG from the old referenced profile only if its name isn't empty, otherwise an entry with empty name will be inserted into m_bufferProfileLookup
- Don't try removing statically configured profiles with dynamic headroom from the APPL_DB because they were not programmed to APPL_DB.
- Setting a buffer PG to the same profile as it was causes the referenced dynamic profile unable to be removed once it isn't referenced any more

Signed-off-by: Stephen Sun <[email protected]>
@stephenxs stephenxs marked this pull request as ready for review January 15, 2021 08:07
@stephenxs
Copy link
Collaborator Author

retest this, please

@neethajohn
Copy link
Contributor

retest this please

2 similar comments
@stephenxs
Copy link
Collaborator Author

retest this please

@liat-grozovik
Copy link
Collaborator

retest this please

@stephenxs stephenxs requested a review from neethajohn January 18, 2021 01:50
@stephenxs
Copy link
Collaborator Author

retest this please

neethajohn
neethajohn previously approved these changes Jan 20, 2021
cfgmgr/buffermgrdyn.cpp Outdated Show resolved Hide resolved
Signed-off-by: Stephen Sun <[email protected]>
@stephenxs
Copy link
Collaborator Author

retest vs please

1 similar comment
@neethajohn
Copy link
Contributor

retest vs please

@neethajohn neethajohn merged commit f4c3579 into sonic-net:master Jan 22, 2021
@stephenxs stephenxs deleted the dbc-enhancement branch January 22, 2021 23:08
lguohan pushed a commit that referenced this pull request Jan 25, 2021
* Enhancement and bug fixes for dynamic buffer calculation

What I did
- Remove make_pair when calling emplace_back.
- The pool size isn't recalculated when a port with headroom override but without speed or cable length configured being shutdown.
- Remove the current PG from the old referenced profile only if its name isn't empty, otherwise an entry with empty name will be inserted into m_bufferProfileLookup
- Don't try removing statically configured profiles with dynamic headroom from the APPL_DB because they were not programmed to APPL_DB.
- Setting a buffer PG to the same profile as it was causes the referenced dynamic profile unable to be removed once it isn't referenced any more

How I verified it
Run regression and vs test

Signed-off-by: Stephen Sun <[email protected]>
DavidZagury pushed a commit to DavidZagury/sonic-swss that referenced this pull request Mar 4, 2021
* Enhancement and bug fixes for dynamic buffer calculation

What I did
- Remove make_pair when calling emplace_back.
- The pool size isn't recalculated when a port with headroom override but without speed or cable length configured being shutdown.
- Remove the current PG from the old referenced profile only if its name isn't empty, otherwise an entry with empty name will be inserted into m_bufferProfileLookup
- Don't try removing statically configured profiles with dynamic headroom from the APPL_DB because they were not programmed to APPL_DB.
- Setting a buffer PG to the same profile as it was causes the referenced dynamic profile unable to be removed once it isn't referenced any more

How I verified it
Run regression and vs test

Signed-off-by: Stephen Sun <[email protected]>
raphaelt-nvidia pushed a commit to raphaelt-nvidia/sonic-swss that referenced this pull request Oct 5, 2021
* Enhancement and bug fixes for dynamic buffer calculation

What I did
- Remove make_pair when calling emplace_back.
- The pool size isn't recalculated when a port with headroom override but without speed or cable length configured being shutdown.
- Remove the current PG from the old referenced profile only if its name isn't empty, otherwise an entry with empty name will be inserted into m_bufferProfileLookup
- Don't try removing statically configured profiles with dynamic headroom from the APPL_DB because they were not programmed to APPL_DB.
- Setting a buffer PG to the same profile as it was causes the referenced dynamic profile unable to be removed once it isn't referenced any more

How I verified it
Run regression and vs test

Signed-off-by: Stephen Sun <[email protected]>
EdenGri pushed a commit to EdenGri/sonic-swss that referenced this pull request Feb 28, 2022
- What I did
Added a field for hardware revision to the psushow output table.

- How I did it
Defined new psu status field sourced from "revision" field in STATE_DB added in alexrallen/sonic-platform-daemons#1 and adds it to the table output with the header "HW Rev"

All relevant unit tests were also updated.

- How to verify it
Execute show platform psustatus and verify that "HW Rev" column is present and appropriately populated depending on the platform.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants