libeth_xdp_xmit_frame_dma(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… libeth_xdp_xmit_frame_dma πŸ’…

okay bestie, welcome to the Kernel API Manual ✨ this one's a tiny little internal helper β€” libeth_xdp_xmit_frame_dma β€” and honestly it's giving "small but crucial" main character energy πŸ‘‘


🌸 NAME 🌸

libeth_xdp_xmit_frame_dma β€” an internal helper that gets you access to the DMA of an &xdp_frame πŸŽ€


✨ SYNOPSIS ✨

libeth_xdp_xmit_frame_dma (xf );

(no cap, that's literally the whole call β€” one argument, one vibe check πŸ’…)


πŸ¦‹ ARGUMENTS πŸ¦‹

  • xf β€” a pointer to the XDP frame 🌈 that's it, that's the whole input, she's low maintenance

πŸ’– DESCRIPTION πŸ’–

so here's the situation: there's no place inside libeth_xdp_tx_frame to store the DMA address for an xdp_frame head 😭 like, nowhere. not a single slot. tragic.

so what do we do? we use the headroom 🫢 the address gets placed right after the frame struct, and it's naturally aligned β€” so it just slides in there all cute and correct ✨


πŸ‘‘ RETURN πŸ‘‘

a pointer to the DMA address you should use πŸ’œ that's the whole gift, bestie 🎁


🧚 SEE ALSO 🧚

the whole friend group, no one left out fr fr πŸ’€ β€” plus the kernel file ./include/net/libeth/xdp.h:


and that's the whole page, bestie, you ate it up πŸ“ source lives at ./include/net/libeth, dated October 2026 β€” mwah, go read some XDP code πŸ’‹πŸŒ·

πŸ“¦ where this page comes from