Skip to content

feat(vmnet): support Virtio packet headers - #290

Merged
Code-Hex merged 1 commit into
mainfrom
codex/vmnet-virtio-headers
Oct 28, 2026
Merged

Code-Hex merged 1 commit into
mainfrom
codex/vmnet-virtio-headers

Conversation

@Code-Hex

Copy link
Copy Markdown
Owner

Add WithInterfaceVirtioHeader for applications that exchange packets with a 12-byte Virtio network header. MaxPacketSize includes the header, so single-packet I/O, batch I/O, and vmnetsock use the required buffer size. Enabling checksum offload at the same time returns an error before the interface starts.

This covers the native Virtio-header option from #205. The mode is opt-in and requires a peer that understands the header and its offload metadata. QEMU's stream/socket backends, VZ file-handle attachments, and krunkit's current Unix datagram backend expect plain Ethernet frames. They need separate support before they can use this mode. vmnetsock forwards packet bytes unchanged and keeps its existing Dup and Close behavior.

@Code-Hex
Code-Hex merged commit 787f319 into main Oct 28, 2026
13 checks passed
@Code-Hex
Code-Hex deleted the codex/vmnet-virtio-headers branch October 28, 2026 12:09
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