Skip to content

feat: make the frame size configurable with -DVDE_MTU - #77

Merged
rd235 merged 1 commit into
masterfrom
vde-mtu-option
Oct 3, 2026
Merged

rd235 merged 1 commit into
masterfrom
vde-mtu-option

Conversation

@danielinux

Copy link
Copy Markdown
Member

Fixes #22

CMake option VDE_MTU (default 1504) in port.h and vxlan.h.

Verified: host build passes.

vde_switch and vde_vxlan hardcode a 1504-byte data buffer, so frames
larger than that (e.g. jumbo pings) are silently dropped. Add a
VDE_MTU CMake option (default 1504) and use it for the data buffer in
port.h and vxlan.h; the headers fall back to 1504 when built without
the definition.

Fixes #22.
Copilot AI balanced review requested due to automatic review settings October 3, 2026 11:37

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The focused changes consistently replace both hard-coded limits while retaining backward-compatible defaults.

Review effort: Balanced
Findings: None

What changed in this PR

Makes packet capacity configurable while preserving the existing 1504-byte default.

Changes:

  • Adds the VDE_MTU CMake cache setting.
  • Uses VDE_MTU for switch and VXLAN packet buffers.
File Description
CMakeLists.txt Defines and propagates VDE_MTU.
src/​vde_switch/​port.h Configures switch packet capacity.
src/​vde_vxlan/​vxlan.h Configures VXLAN packet capacity.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@rd235 rd235 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

useful new feature

@rd235
rd235 merged commit 9190b23 into master Oct 3, 2026
3 checks passed
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.

Support for packets bigger than 1504 in vde_switch

3 participants