STRUCT LIBETH_XDPSQ_NAPI_STATS(9)
β¨ struct libeth_xdpsq_napi_stats β¨
okay bestie, welcome to the Kernel API Manual π β this one's a struct page, and it's honestly giving "small but mighty." ngl, it's a little cutie.
πΈ NAME πΈ
struct libeth_xdpsq_napi_stats β the "hot" counters that get updated in the XDP Tx completion loop π₯ like, these are the numbers you're touching constantly, so they get the VIP treatment.
π¦ SYNOPSIS π¦
struct libeth_xdpsq_napi_stats {
union {
struct {
u32 packets;
u32 bytes;
u32 fragments;
};
u32 raw[];
};
};
look at that nested union/struct situation β it's giving layers, iykyk π
π Members π
{unnamed_union}β anonymous π (yes, literally no name, it's mysterious like that){unnamed_struct}β also anonymous, also iconic, also nameless π«Άpacketsβ the completed frames counter, keeping track of all the frames that finished up β¨bytesβ the sum of bytes of those completed frames above, doing the math so you don't have to πfragmentsβ the sum of fragments of completed S/G frames, the little pieces of the picture π§©rawβ the alias that lets you access all the fields as an array, one big scoop instead of three small ones π
π SEE ALSO π
- Kernel file
./include/net/libeth/types.hβ go read it, it's right there π¦ struct libeth_rq_napi_stats(9)struct libeth_sq_napi_stats(9)struct libeth_xdpsq_lock(9)struct libeth_xdpsq_timer(9)struct libeth_xdp_buff_stash(9)
all the sibling structs, a whole little family fr fr π
π quick reminder bestie: raw is an alias β same fields, array access. no cap, that's the whole trick.
and that's the page! π this iconic little number lives in ./include/net/libeth and it's dated October 2026 β mwah, slay, periodt βππ
π¦ 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