XDP & XSK Support From a Linux Driver Standpoint
summary
Upstream work adds native XDP and AF_XDP support to the MACB/GEM Ethernet driver, replacing skb RX with a per-queue page-fragment allocator that maps pages once and avoids DMA unmap on XDP drops, implements AF_XDP zero-copy with UMEM and lockless rings for userland packet I/O, and extends TX handling with NDO_XDP_XMIT and buffer-type bookkeeping. Context changes require a context-swap to reallocate rings without closing the interface. Microbenchmarks show XDP drop is cheapest, AF_XDP is efficient for small packets but shows a pathological cost for large frames; series not fully merged yet.
AI-written summary · about
