libeth_xdp_buff_add_frag(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… libeth_xdp_buff_add_frag β€” name's right there, bestie (Kernel API Manual, no cap)

okay so bestie, welcome to the glow-up of libeth_xdp_buff_add_frag β€” yes that's a mouthful, yes it ate, and yes we're gonna get through it together 🫢 this is a kernel API manual page and honestly? it's giving niche-but-important.


✨ SYNOPSIS ✨

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

like, look at her. returns a bool, takes three lil args, living her best life πŸ’œ


πŸŽ€ ARGUMENTS πŸŽ€

  • xdp β€” the head XDP buffer. she's the main character here πŸ‘‘ it's a struct libeth_xdp_buff *.
  • fqe β€” the Rx buffer that's carrying the frag. yes it's const struct libeth_fqe *, we're not touching her, we're just visiting 🌸
  • len β€” the frag length that the HW reported. a u32, so like… a normal-ish number, not a silly big one πŸ™ˆ

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so real talk: this is an external helper used by libeth_xdp_process_buff. read that again. used by it. so bestie, pls do not call it directly, that's not your moment, that's not your era πŸ’€

⚠️ lowkey important: on error, this thing frees both the head and the frag buffers. like, both of them. so if you were planning on reusing them after a failure… no you weren't πŸ’…

no cap, that's the whole vibe. it's an internal helper doing internal helper things.


⭐ RETURN ⭐

  • true β€” slay, success ✨
  • false β€” error, specifically no space for a new frag 😭

that's it. that's the return. simple, iconic, periodt.


πŸ’– SEE ALSO πŸ’–

the kernel file herself:

Kernel file ./drivers/net/ethernet/intel/libeth/xdp.c

and the whole friend group (iykyk):

go read them, they're all in the same group chat 🫢


and that's the page, bestie 🌈 sign-off time: this lil masterpiece comes from ./drivers/net/ethernet/intel/l... and it's dated October 2026 β€” future-coded, honestly πŸ’€βœ¨ go forth and not call this helper directly, mwah πŸŽ€

πŸ“¦ where this page comes from