xdp_live_frame

command
v0.21.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

This program demonstrates using BPF_F_TEST_XDP_LIVE_FRAMES to run an XDP program in "live frame mode". In this mode, the kernel sends packets directly to the network interface using the XDP program's return value (e.g., XDP_TX). This is useful for high-performance packet generation and testing.

Usage: go run . <ifname> <repeat> <batch_size> <src_ip> <dst_ip> <dst_mac>

This example requires Linux kernel version 5.18 or newer.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL