libeth_xdp_process_buff(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

libeth_xdp_process_buff(9) πŸ’–

okay so this is the Kernel API Manual entry for libeth_xdp_process_buff(9), and it's literally all about attaching an Rx buffer to a &libeth_xdp_buff, bestie. no cap.


✨ NAME ✨

libeth_xdp_process_buff β€” attach Rx buffer to &libeth_xdp_buff 🫢


πŸŽ€ SYNOPSIS πŸŽ€

bool libeth_xdp_process_buff (struct libeth_xdp_buff *xdp , const struct
       libeth_fqe *fqe , u32 len );

🌸 ARGUMENTS 🌸

  • xdp β€” the XDP buffer you're attaching the Rx buffer to, periodt.
  • fqe β€” the Rx buffer to process. iconic little thing.
  • len β€” received data length from the descriptor, fr fr.

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the vibe: if the XDP buffer is empty, this attaches the Rx buffer as head and initializes the required fields. otherwise, it attaches the buffer as a frag. πŸ’…

it already performs DMA sync-for-CPU and frame start prefetch β€” and that prefetch is for head buffers only, iykyk. ✨


πŸ’œ RETURN πŸ’œ

returns true on success, and false if the descriptor must be skipped β€” that's when it's empty or there's no space for a new frag. 😭

skip means skip, bestie. don't make it a whole thing. πŸ’€

πŸ’… SEE ALSO πŸ’…

the whole friend group is here, no cap:


mwah πŸ’‹ this page comes from the source path ./include/net/libeth, dated October 2026, and it's the libeth_xdp_process_buff(9) manual page. slay. 🌈

πŸ“¦ where this page comes from