libeth_xdp_prepare_buff(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… libeth_xdp_prepare_buff β€” from the Kernel API Manual, bestie

Okay so real talk, this is libeth_xdp_prepare_buff(9), and it lives in the Kernel API Manual. It's the little helper that fills up your &libeth_xdp_buff with the head FQE data. Lowkey iconic, ngl. ✨


🌸 NAME 🌸

libeth_xdp_prepare_buff β€” fill &libeth_xdp_buff with head FQE data 🫢


✨ SYNOPSIS ✨

void libeth_xdp_prepare_buff (struct libeth_xdp_buff *xdp , const struct
libeth_fqe *fqe , u32 len );

πŸŽ€ ARGUMENTS πŸŽ€

  • xdp β€” the XDP buffer you're attaching the head to. It's the main character here πŸ’…
  • fqe β€” the FQE that's carrying the head buffer. Your little payload bestie πŸ“
  • len β€” the buffer len, and it's passed from HW, so it's not yours to make up fr fr

πŸ¦‹ DESCRIPTION πŸ¦‹

So this one is internal β€” meaning hands off, bestie, use libeth_xdp_process_buff instead. πŸ™ˆ Not me warning you, it's literally in the page.

What it does: it initializes the XDP buffer head with all the Rx buffer data β€” the data pointer, the length, the headroom, and the truesize/tailroom. Then it zeroes the flags. That's it. Clean, simple, ate. πŸ”₯


πŸ’œ SEE ALSO πŸ’œ

Kernel file ./include/net/libeth/xdp.h, plus the whole extended universe:


Ok that's the whole page, go be great πŸ’–

And that's a wrap, bestie! This one comes from ./include/net/libeth, dated October 2026, and it's page libeth_xdp_prepare_buff(9) in the Kernel API Manual. Slay, go touch some Rx buffers πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from