ENUM NETDEV_XDP_ACT(9)
β¨ enum netdev_xdp_act(9) β¨
okay bestie, so this is a page from the Kernel API Manual β we're talking about enum netdev_xdp_act, which is literally the enum that tells you which XDP features a netdev supports π
it's giving "feature flag checklist for your network driver" and honestly it's iconic.
πΈ SYNOPSIS πΈ
enum netdev_xdp_act {
NETDEV_XDP_ACT_BASIC ,
NETDEV_XDP_ACT_REDIRECT ,
NETDEV_XDP_ACT_NDO_XMIT ,
NETDEV_XDP_ACT_XSK_ZEROCOPY ,
NETDEV_XDP_ACT_HW_OFFLOAD ,
NETDEV_XDP_ACT_RX_SG ,
NETDEV_XDP_ACT_NDO_XMIT_SG
};
no cap, that's the whole roster π
π Constants π
NETDEV_XDP_ACT_BASICβ the starter pack π these are the XDP features that literally every driver supports:XDP_ABORTED,XDP_DROP,XDP_PASS,XDP_TX. if your driver can't do theseβ¦ bestie, what is it even doing.NETDEV_XDP_ACT_REDIRECTβ this one means the netdev supportsXDP_REDIRECTπ¦ (yeah, the packet packet goes elsewhere now).NETDEV_XDP_ACT_NDO_XMITβ tells you whether the netdev implements thendo_xdp_xmitcallback π₯ so like, does it actually have the transmit hook or not.NETDEV_XDP_ACT_XSK_ZEROCOPYβ the flex one β¨ this says the netdev supportsAF_XDPin zero copy mode. zero copies, zero problems, we love to see it.NETDEV_XDP_ACT_HW_OFFLOADβ informs you if the netdev supports XDP hw offloading π hardware doing the work so the CPU doesn't have to? main character energy fr.NETDEV_XDP_ACT_RX_SGβ tells you if the netdev implements non-linear XDP buffer support in the driver napi callback π (scatter-gather at receive time, iykyk).NETDEV_XDP_ACT_NDO_XMIT_SGβ and this one's the sibling of the last: informs you if the netdev implements non-linear XDP buffer support in thendo_xdp_xmitcallback π transmit side this time.
π«Ά SEE ALSO π«Ά
- Kernel file
./tools/include/uapi/linux/netdev.henum netdev_xdp_rx_metadata(9)enum netdev_xsk_flags(9)
lowkey reminder bestie: this page lives under ./tools/include/uapi/linux and the manual is dated October 2026 β so if you're citing it in a group chat, that's the receipt π
k byeee, go read the kernel headers, they're literally obsessed with you π§π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms