Skip to content
Tagged articles

AF_XDP

2 articles · Page 1 of 1
Code Archaeology
Code Archaeology
Jul 15, 2025 · Backend Development

AF_XDP Explained: Zero-Copy Packet Processing via eBPF Ring Buffers

This article explains AF_XDP, the user-space socket interface for XDP that enables zero-copy packet processing via shared memory (UMEM) and four single-producer/single-consumer ring queues (RX, TX, FILL, COMPLETION), detailing the packet receive/send flow and the BPF_MAP_TYPE_XSKMAP for redirecting packets to user space.

AF_XDPBPF_MAP_TYPE_XSKMAPLinux kernel networking
0 likes · 8 min read
AF_XDP Explained: Zero-Copy Packet Processing via eBPF Ring Buffers
Bilibili Tech
Bilibili Tech
Dec 27, 2022 · Operations

Optimizing QUIC Gateway Performance with AF_XDP

Bilibili’s video CDN replaced its traditional TCP‑based gateway with a QUIC/HTTP‑3 gateway and, to curb the extra CPU load caused by complex UDP handling, adopted AF_XDP kernel‑bypass sockets that redirect packets via XDP, cutting CPU usage by about half, raising peak bandwidth to roughly 9 Gbps and improving per‑bandwidth efficiency by up to 30 %.

AF_XDPLinux kernelQUIC
0 likes · 14 min read
Optimizing QUIC Gateway Performance with AF_XDP