Skip to content

Switch to use an in memory port interface when creating dummy ports - #780

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

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

Conversation

@gavinz-ship-it

Copy link
Copy Markdown
Contributor

The existing code creates a tap port when an interface does not exist to avoid errors due to non-existent ports.
This change switches the tap ports to a genetlink port that is stored in memory.

Using tap ports creates some issues, since tap ports open a /dev/net/tun handle, if Lucius opens too many of these handles, the buffer will be full and subsequent operations will fail.

This change also greatly improves the performance since the dummy port is completely in memory.

Switch to use PortType_PORT_TYPE_GENETLINK when creating dummy ports.
Remove code to handle tap ports since dummy ports will use PortType_PORT_TYPE_GENETLINK.
Update genetlink so that it can be used to create dummy ports.
Fix minor bug in the string function
Update GenetlinkPortDesc
Update GenetlinkPortDesc
@gavinz-ship-it
gavinz-ship-it requested a review from a team as a code owner October 29, 2026 23:03
Update comments
@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