STRUCT LIBETH_XDP_BUFF_STASH(9)
π struct libeth_xdp_buff_stash(9) π
okay so bestie, you're reading the Kernel API Manual rn β welcome, this is the libeth corner of the kernel and we're about to make it make sense π«Ά
β¨ NAME β¨
struct libeth_xdp_buff_stash β literally the struct you use for stashing an &xdp_buff onto a queue π no cap, that's the whole job.
πΈ SYNOPSIS πΈ
struct libeth_xdp_buff_stash {
void *data;
u16 headroom;
u16 len;
u32 frame_sz:24;
u32 flags:8;
};
bestie look at that bitfield β frame_sz gets 24 bits and flags gets 8 bits, and they're roommates in the same u32. slay. π
π¦ Members π¦
dataβ pointer to the start of the frame, i.e.xdp_buff.data. this is where the frame begins, main character energy β¨headroomβ the frame headroom, computed asxdp_buff.data - xdp_buff.data_hard_start. it's the spare space before your data, lowkey important πΈlenβ the frame's linear space length, i.e.xdp_buff.data_end - xdp_buff.data. the actual amount of linear frame you've got πframe_szβ the truesize occupied by the frame,xdp_buff.frame_sz. yes it's the whole footprint, not just the payload πflagsβxdp_buff.flags. the vibes check bits, faithfully carried over π₯
π Description π
so here's the tea β: xdp_buff is 56 bytes long on x64, and libeth_xdp_buff is 64 bytes. that's the size gap we're working with, bestie.
this structure carries only the necessary fields to save/restore a partially built frame on the queue structure π«Ά so you can finish building it during the next NAPI poll. that's it. that's the whole vibe. no extra luggage, just the essentials β it's giving minimalist icon π
π SEE ALSO π
- Kernel file
./include/net/libeth/types.h struct libeth_rq_napi_stats(9)struct libeth_sq_napi_stats(9)struct libeth_xdpsq_napi_stats(9)struct libeth_xdpsq_lock(9)struct libeth_xdpsq_timer(9)
go read those next, they're all in the same friend group fr fr π¦
and that's the page!! brought to you by ./include/net/libeth, dated October 2026 β mwah, go forth and stash responsibly π
β¨π
π¦ 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