libeth_xdp_buff_add_frag(9)
π 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 astruct libeth_xdp_buff *.fqeβ the Rx buffer that's carrying the frag. yes it'sconst struct libeth_fqe *, we're not touching her, we're just visiting πΈlenβ the frag length that the HW reported. au32, 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):
libeth_xdpsq_init_timer(9)libeth_xdp_tx_exception(9)libeth_xdp_load_stash(9)libeth_xdp_save_stash(9)libeth_xdp_return_buff_slow(9)libeth_xdp_prog_exception(9)libeth_xdp_return_buff_bulk(9)libeth_xdp_queue_threshold(9)__libeth_xdp_set_features(9)libeth_xdp_set_redirect(9)
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
- 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