Skip to content

[patch] add patch "net: sch_generic: fix the missing new qdisc assign…#213

Merged
qiluo-msft merged 1 commit intosonic-net:masterfrom
stepanblyschak:patch-net-sched
May 31, 2021
Merged

[patch] add patch "net: sch_generic: fix the missing new qdisc assign…#213
qiluo-msft merged 1 commit intosonic-net:masterfrom
stepanblyschak:patch-net-sched

Conversation

@stepanblyschak
Copy link
Copy Markdown
Contributor

@stepanblyschak stepanblyschak commented May 24, 2021

…ment bug"

To fix ENOBUFS returned by send() instead of ENETDOWN when interface
flaps.

The original issue is - when performing LAG memeber flapping, a LAG memeber can stuck in disabled state until next interface flap. This is because, teamd calls lacp_send() when setting internal LAG member state which ignores ENETDOWN but not ENOBUFS. This will lead to a situation when internal LACP member state stucks in disabled state.

Signed-off-by: Stepan Blyschak stepanb@nvidia.com

…ment bug"

To fix ENOBUFS returned by send() instead of ENETDOWN when interface
flaps.

Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
@liat-grozovik
Copy link
Copy Markdown
Collaborator

@stepanblyschak is there a github issue which this fix refers to? if not, can you update the PR description of what was observed so this fix solves it?
@lguohan can you please review ?

@liat-grozovik
Copy link
Copy Markdown
Collaborator

Once approved, can you please add label for 202012? I don't have the permission to do so.

@liat-grozovik
Copy link
Copy Markdown
Collaborator

@qiluo-msft can you please merge and cherry pick to 202012?

@dprital
Copy link
Copy Markdown
Collaborator

dprital commented May 28, 2021

@qiluo-msft - Thanks for approving this PR. Can you please add the label - required for 202012 ? Thanks!

@qiluo-msft qiluo-msft merged commit fcf7cdc into sonic-net:master May 31, 2021
qiluo-msft pushed a commit that referenced this pull request Jun 1, 2021
…ment bug" (#213)

To fix ENOBUFS returned by send() instead of ENETDOWN when interface flaps.

The original issue is - when performing LAG memeber flapping, a LAG memeber can stuck in disabled state until next interface flap. This is because, teamd calls lacp_send() when setting internal LAG member state which ignores ENETDOWN but not ENOBUFS. This will lead to a situation when internal LACP member state stucks in disabled state.
dal00 pushed a commit to kamelnetworks/sonic-linux-kernel that referenced this pull request Jul 20, 2025
…ure (sonic-net#213)

- The last del command in the following flow will fail because of a bug in MgmtIfaceCfg. During vrf add, it tries to update the default route and if the route is not present, the command will write an error log
- MgmtIfaceCfg is not saving the saving the state in the internal variable. This will cause problem next time and update comes.

 ```
 config vrf add mgmt
 config vrf del mgmt
 config vrf add mgmt
 config vrf del mgmt
 ```

- Added a UT and verified the fix

 ```
 Dec 18 03:57:43 sonic hostcfgd[98362]: MgmtIfaceCfg: mgmt vrf state update
 Dec 18 03:57:43 sonic hostcfgd[98362]: Set mgmt vrf state true
 Dec 18 03:57:50 sonic hostcfgd[98362]: MgmtIfaceCfg: Could not delete eth0 route
 Dec 18 03:58:05 sonic hostcfgd[98362]: MgmtIfaceCfg: mgmt vrf state update
 Dec 18 03:58:05 sonic hostcfgd[98362]: Set mgmt vrf state false
 ```
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.

4 participants