Skip to content

Use a single shared linkStateWatcher - #772

Open
gavinz-ship-it wants to merge 3 commits into
openconfig:mainfrom
gavinz-ship-it:main
Open

gavinz-ship-it wants to merge 3 commits into
openconfig:mainfrom
gavinz-ship-it:main

Conversation

@gavinz-ship-it

Copy link
Copy Markdown
Contributor

In the original code, each port has its own linkStateWatcher, and updates are broadcast to all linkStateWatcher. updates for other devices are dropped.

With 516 interfaces, the original code generates about 398,610 + 264,192 updates. The new code generates about 1800 updates.

Use a single shared linkStateWatcher for all interfaces.
Update kernel.go to use a single shared linkStateWatcher.
Update tap.go to use a single shared linkStateWatcher.
@gavinz-ship-it
gavinz-ship-it requested a review from a team as a code owner October 23, 2026 20:36
@sonikajindal

Copy link
Copy Markdown
Contributor

/gcbrun

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.

2 participants