Skip to content

Fix tables handling race condition in buffermgr#484

Merged
lguohan merged 2 commits intosonic-net:masterfrom
andriymoroz-mlnx:buffermgr_racing
Apr 24, 2018
Merged

Fix tables handling race condition in buffermgr#484
lguohan merged 2 commits intosonic-net:masterfrom
andriymoroz-mlnx:buffermgr_racing

Conversation

@andriymoroz-mlnx
Copy link
Copy Markdown
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>
{
// create/update profile for port
doSpeedUpdateTask(port, fvValue(i));
task_status = doSpeedUpdateTask(port, fvValue(i));
Copy link
Copy Markdown
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
Copy Markdown
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
Janetxxx pushed a commit to Janetxxx/sonic-swss that referenced this pull request Nov 10, 2025
* 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>
Janetxxx pushed a commit to Janetxxx/sonic-swss that referenced this pull request Nov 10, 2025
* 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>
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