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

Fix tables handling race condition in buffermgr #484

Merged
merged 2 commits into from
Apr 24, 2018

Conversation

andriymoroz-mlnx
Copy link
Contributor

Signed-off-by: Andriy Moroz c_andriym@mellanox.com

What I did
Fixed issue which may leave switch not fully configured when speed is applied before cable length table

Why I did it
Bug fix

How I verified it
Forced CABLE_LENGTH to be applied the last and checked switch completes config after all input i available.

Details if related

Signed-off-by: Andriy Moroz <c_andriym@mellanox.com>
}
// In case of PORT table update, Buffer Manager is interested in speed update only
if (table_name == CFG_PORT_TABLE_NAME && fvField(i) == "speed")
{
// create/update profile for port
doSpeedUpdateTask(port, fvValue(i));
task_status = doSpeedUpdateTask(port, fvValue(i));
Copy link
Contributor

Choose a reason for hiding this comment

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

task_status is going to get overridden in the for loop.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

right... fixed

Signed-off-by: Andriy Moroz <c_andriym@mellanox.com>
@lguohan lguohan merged commit 32bb66f into sonic-net:master Apr 24, 2018
lguohan pushed a commit that referenced this pull request Apr 24, 2018
* Fix tables handling race condition in buffermgr

Signed-off-by: Andriy Moroz <c_andriym@mellanox.com>

* Fixed status lose in loop

Signed-off-by: Andriy Moroz <c_andriym@mellanox.com>
EdenGri pushed a commit to EdenGri/sonic-swss that referenced this pull request Feb 28, 2022
* [reboot script] add -h, -? and -x options

Signed-off-by: Ying Xie <ying.xie@microsoft.com>

* remove option -x

* add some more help information for reboot script itself

* change some wording/format
oleksandrivantsiv pushed a commit to oleksandrivantsiv/sonic-swss that referenced this pull request Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants