BPF elf examples

Stephen Hemminger stephen at networkplumber.org
Mon Oct 20 22:16:31 CEST 2025


While looking in more detail at BPF use of VLA, went down a rabbit hole
because there are no tests and no examples of loading a BPF program using
the elf_load API's in BPF.

Tried using AI to generate tests, and as usual it sort of worked but the
example code generated won't load or work. Is there anywhere to find working
DPDK examples of using BPF load?


More information about the dev mailing list