ENUM NETDEV_XDP_RX_METADATA(9)
πΈ enum netdev_xdp_rx_metadata(9) πΈ
okay bestie so this one's from the Kernel API Manual β it's the enum that's basically a vibe check for what your NIC can actually do with XDP receive metadata π like, which little extras come free with your packets. no cap, it's tiny, but it's the whole group chat of RX metadata capabilities.
β¨ NAME β¨
enum netdev_xdp_rx_metadata β the enum of "can my device even do this tho" for XDP receive metadata π
β¨ SYNOPSIS β¨
enum netdev_xdp_rx_metadata {
NETDEV_XDP_RX_METADATA_TIMESTAMP ,
NETDEV_XDP_RX_METADATA_HASH ,
NETDEV_XDP_RX_METADATA_VLAN_TAG
};
π«Ά DESCRIPTION π«Ά
there's no big essay here, bestie β this whole page is just the enum and the three constants in it. they're flags, and each one means your device can surface that specific piece of RX metadata. that's the entire lore. iykyk π
π Constants π
NETDEV_XDP_RX_METADATA_TIMESTAMPβ your device is capable of exposing the receive HW timestamp viabpf_xdp_metadata_rx_timestamp. β°β¨ literally the clock info, handed to you.NETDEV_XDP_RX_METADATA_HASHβ your device is capable of exposing the receive packet hash viabpf_xdp_metadata_rx_hash. π the hash of the packet, right there for the taking.NETDEV_XDP_RX_METADATA_VLAN_TAGβ your device is capable of exposing the receive packet VLAN tag viabpf_xdp_metadata_rx_vlan_tag. π·οΈ the VLAN tag, exposed and iconic.
heads up: each of these is a capability claim about the device, fr fr β it's saying the device can do it, not that it's doing it rn.
π SEE ALSO π
- Kernel file
./tools/include/uapi/linux/netdev.hβ the source of truth, go read it bestie π enum netdev_xdp_act(9)enum netdev_xsk_flags(9)
and that's the page, no notes. π sign-off time: this one lives in ./tools/include/uapi/linux, dated October 2026, and yes it's enum netdev_xdp_rx_metadata(9) β periodt. π¦π
π¦ 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