Skip to content

sample: AF_XDP TCP echo server #120

@benaadams

Description

@benaadams

Problem

AF_XDP is listed as the "Recommended" Linux integration in both the README and the integration guide. The comparison table recommends it for modern production, development/testing, and VPN/tunnel apps. Yet the only Linux samples use NetMap.

Sub-tasks

  • Create sample/Magma.AF_XDP.TcpHost
  • Mirror the structure of Magma.NetMap.TcpHost but using AF_XDP backend
  • README: prerequisites (kernel version, XDP-capable NIC or veth, libbpf)
  • Inline comments explaining AF_XDP-specific setup (UMEM, fill/completion rings)

Dependencies

Depends on: #119 (confidence that AF_XDP works)
Unlocks: #121 (AF_XDP plaintext sample), #125 (NetMap->AF_XDP migration guide), #135 (ICMP ping sample)

Phase

Phase 2 (Platform Backends & Samples)

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions