Skip to content

support bridge tap to reduce hop between tap & nic#19

Merged
CMGS merged 3 commits intomasterfrom
feat/bridge-tap
Apr 14, 2026
Merged

support bridge tap to reduce hop between tap & nic#19
CMGS merged 3 commits intomasterfrom
feat/bridge-tap

Conversation

@CMGS
Copy link
Copy Markdown
Contributor

@CMGS CMGS commented Apr 14, 2026

No description provided.

CMGS added 3 commits April 14, 2026 10:41
New network/bridge package: creates TAP devices and adds them
directly to an existing Linux bridge as ports. An external DHCP
server on the bridge serves VM IPs.

Data path: VM → TAP → bridge → eth0 (3 hops, vs CNI's 5 hops).
No veth, no TC redirect, no netns. TAP is a direct bridge port.

Designed to work with cocoon-net's cni0 bridge or any pre-existing
bridge with DHCP + routing already configured.

Usage: cocoon vm run --bridge cni0 --name vm1 IMAGE

The --bridge flag is mutually exclusive with --network (CNI).
CH and FC launchProcess skip EnterNetns when NetnsPath is empty.
@CMGS CMGS merged commit 4101d55 into master Apr 14, 2026
4 checks passed
@CMGS CMGS deleted the feat/bridge-tap branch April 14, 2026 17:53
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