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

remove FDB entires of BridgePort before removing the BridgePort #1451

Merged
merged 8 commits into from
Oct 2, 2020

Conversation

madhanmellanox
Copy link
Contributor

What I did
To fix an issue when removing bridgeport, I introduced code to remove FDB entries of the bridgeport before calling SAI API remove BridgePort.

Why I did it
I introduced this fix because by directly removing the bridgeport without flushing the bridge port's FDB entries, the bridge port removal was failing, since it had uncleaned ASIC DB FDB entries.

How I verified it
I verified it by sending traffic to the vlan port and creating a FDB entry for the vlan port. By, then when I remove the bridge port member from the VLAN port, the FDB entry was removed as well as bridge port is removed from VLAN membership.

Details if related
The fix is introduced in PortsOrch.cpp

orchagent/portsorch.cpp Outdated Show resolved Hide resolved
orchagent/portsorch.cpp Outdated Show resolved Hide resolved
orchagent/portsorch.cpp Outdated Show resolved Hide resolved
orchagent/portsorch.cpp Outdated Show resolved Hide resolved
orchagent/portsorch.cpp Outdated Show resolved Hide resolved
orchagent/portsorch.cpp Outdated Show resolved Hide resolved
@abdosi
Copy link
Contributor

abdosi commented Oct 30, 2020

@liat-grozovik cherry-pick has conflcit

@madhanmellanox
Copy link
Contributor Author

@abdosi this PR according to @prsunny should not be ported to 201911 because flushFDBEntries() function is not present in 201911.

@lguohan
Copy link
Contributor

lguohan commented Nov 21, 2020

included as PR #1516

EdenGri pushed a commit to EdenGri/sonic-swss that referenced this pull request Feb 28, 2022
Increase verbosity of pytest to allow for full, non-truncated error messages to appear in CI unit test results in order to help facilitate troubleshooting of unit test failures.
yxieca pushed a commit that referenced this pull request Oct 25, 2022
* remove FDB entires of BridgePort before removing the BridgePort
Co-authored-by: Madhan Babu <madhan@arc-build-server.mtr.labs.mlnx>
yxieca added a commit that referenced this pull request Jan 26, 2023
@yxieca
Copy link
Contributor

yxieca commented Jan 26, 2023

This change, though cherry-picked cleanly to 201811, but is not able to build.

oleksandrivantsiv pushed a commit to oleksandrivantsiv/sonic-swss that referenced this pull request Mar 1, 2023
* SAI submodule update

- d0f3333 Tunnel Scoped TC MAP and Remarking (sonic-net#1413) (sonic-net#1451)
- 62364a3 Add two more API as RPC for warmboot testing (sonic-net#1421) (sonic-net#1437)
- 426fad1 Make saithriftv compatible with thrift 0.14.1 (sonic-net#1433)

Signed-off-by: bingwang <bingwang@microsoft.com>
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.

8 participants