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

Improve the way of handling BUFFER_PG during PFC storm #1480

Merged

Commits on Oct 16, 2020

  1. Fix the issue: failed to updating BUFFER_PG during PFC storm

    One action for the PFC storm is to set a zero buffer profile on the PG under PFC storm.
    The zero buffer won't be removed until the PFC storm has gone.
    If the user wants to modify the buffer profile for the PG, the bufferorch will return "task_need_retry".
    General speaking it doesn't matter unless that:
    - the system can't be warm rebooted until the PFC storm has gone.
    - the "task_need_retry" will block the update of the entire BUFFER_PG table from being programmed to ASIC.
    In this sense, we need a better solution.
    
    The new solution will:
    - record the new profile user wants to apply during PFC storm as the "pending profile" for that PG and return "task_success" if the PG is under PFC storm.
    - apply the pending profile once the PG is unlocked.
    - the latest pending profile will take effect in case user tries updating the profile for more than 1 times.
    
    Signed-off-by: Stephen Sun <stephens@nvidia.com>
    stephenxs committed Oct 16, 2020
    Configuration menu
    Copy the full SHA
    ee3103f View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2020

  1. Address review comments: add a pair of brackets for the if-block

    Signed-off-by: Stephen Sun <stephens@nvidia.com>
    stephenxs committed Oct 23, 2020
    Configuration menu
    Copy the full SHA
    5b4360b View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2020

  1. Fix ut error

    Signed-off-by: Stephen Sun <stephens@nvidia.com>
    stephenxs committed Oct 24, 2020
    Configuration menu
    Copy the full SHA
    1c7a7d2 View commit details
    Browse the repository at this point in the history

Commits on Dec 1, 2020

  1. Fix typo

    Signed-off-by: Stephen Sun <stephens@nvidia.com>
    stephenxs committed Dec 1, 2020
    Configuration menu
    Copy the full SHA
    fc080ec View commit details
    Browse the repository at this point in the history