Skip to content

remove FDB entires of BridgePort before removing the BridgePort#1451

Merged
prsunny merged 8 commits intosonic-net:masterfrom
madhanmellanox:madhan_remove_bridgeport
Oct 2, 2020
Merged

remove FDB entires of BridgePort before removing the BridgePort#1451
prsunny merged 8 commits intosonic-net:masterfrom
madhanmellanox:madhan_remove_bridgeport

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

@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>
Janetxxx pushed a commit to Janetxxx/sonic-swss that referenced this pull request Nov 10, 2025
…c-net#1451)

* remove FDB entires of BridgePort before removing the BridgePort
Co-authored-by: Madhan Babu <madhan@arc-build-server.mtr.labs.mlnx>
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