XDP gaining access to NIC hardware hints via BTF
summary
Adds a full BTF ID in metadata (u32 object + u32 type) as the last 8 bytes of XDP metadata so AF_XDP and in-kernel code can decode driver-specific NIC hints via existing BTF/bpftool instead of a new UAPI. Patches add flags in xdp_buff/XDP_FRAME, refcount BTF objects, provide example i40e structs (timestamp, hash, proto) and a user-space BTF decoder; prototype works in XDP→SKB and AF_XDP setups. Performance concern is per-packet lookups; solution is decode at setup, not per-packet.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 7:31BTF IDs and kernel modules
- 10:04XDP hints metadata area
- 12:50Decoupling BTF ID and metadata
- 21:05Future work and transmit site
- 23:15Q&A on BTF object lifetime
- 27:48Performance impact of ID checks
- 31:53Use cases and project analysis
related talks
22mExtending AF_XDP with hardware metadata
28mXDP for TSN
32meBPF: BPF kernel infrastructure
38mPacket Metadata - Where Are Thee?
19mGet start with XDP: write a network filter in 10m
28mLow-Latency, Deterministic Networking with Standard Linux using XDP Sockets
21mHow to Use XDP and eBPF to Accelerate IPSec Throughput by 400%
15meTran: Extensible Kernel Transport with eBPF
