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

MCLAG sync FDB MAC from STATE_DB #1259

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

jianjundong
Copy link

What I did
Previous implement: Mclagsyncd read MACs from ASIC_DB every 1 minute, and notify the MAC changes to ICCPd. FDB entries learned from MC-LAG enabled port-channel will be synced up with peer.

Currently implement: When fdborch is notified that FDB MAC is changed, it will store the changes to STATE_DB. Mclagsyncd is the consumer of the table FDB_TABLE in STATE_DB, and it will notify the MAC changes to ICCPd. FDB entries learned from MC-LAG enabled port-channel will be synced up with peer.

Why I did it
Mclagsyncd reading MAC periodically every minute consumes system CPU.

How I verified it
Complie and test it on nephos lab

Details if related
This PR must work with the following PR.
Layer 2 Forwarding Enhancements #885

@lgtm-com
Copy link

lgtm-com bot commented Apr 21, 2020

This pull request fixes 4 alerts when merging 9b54c5c into 3c8289b - view on LGTM.com

fixed alerts:

  • 2 for Resource not released in destructor
  • 2 for 'new[]' array freed with 'delete'

@lgtm-com
Copy link

lgtm-com bot commented May 21, 2020

This pull request fixes 4 alerts when merging 18b50c1 into 727a518 - view on LGTM.com

fixed alerts:

  • 2 for Resource not released in destructor
  • 2 for 'new[]' array freed with 'delete'

EdenGri pushed a commit to EdenGri/sonic-swss that referenced this pull request Feb 28, 2022
In order to organize code better, reduce the size of large files and help granularize unit test coverage reports, break out the following groups from show/main.py into their own files:

- acl
- dropcounters
- gearbox
- kdump
- nat
- platform
- processes
- sflow
- vnet
- vxlan
- warm_restart

Also remove the following check from utilities_common/cli.py:run_command() and fix all tests which relied upon it:

```
if os.getenv("UTILITIES_UNIT_TESTING") == "1":
        return
```
@prsunny prsunny self-requested a review as a code owner September 2, 2022 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant