STRUCT LIBETH_CQ_PP(9)
π struct_libeth_cq_pp β completion queue poll params β¨
okay so real talk, this is a page straight outta the Kernel API Manual, and it's about struct libeth_cq_pp. yes that's a mouthful, no you don't have to say it out loud, we're gonna get through this together bestie π«Ά
β¨ NAME β¨
struct libeth_cq_pp β completion queue poll params π
π SYNOPSIS π
struct libeth_cq_pp {
struct device *dev;
struct xdp_frame_bulk *bq;
union {
struct libeth_sq_napi_stats *ss;
struct libeth_xdpsq_napi_stats *xss;
};
u32 xdp_tx;
bool napi;
};
likeβ¦ look at her. iconic structure definition, no notes π
πΈ Members πΈ
devβ the device that's gonna perform the DMA unmapping. it's giving "responsible adult of the group chat" energy fr fr.bqβ the XDP frame bulk, used to combine return operations. lowkey the multitasker of the squad β¨{unnamed_union}β anonymous. that's it, that's the whole description. she has no name and she doesn't need one πssβ onstack NAPI stats to fill πxssβ onstack XDPSQ NAPI stats to fill π¦
xdp_txβ number of XDP-not-XSk frames processed. yeah, exactly what it says, no cap.napiβ whether it's called from the NAPI context. vibe check: are we in NAPI or not π
π Description π
so here's the tea β β libeth uses this structure to access the objects it needs for performing a full Tx complete operation, and the whole point is that it doesn't have to pass a million arguments around, and it doesn't have to change all the prototypes every single time a new one gets added. main character energy honestly. she said "i will hold everything so your function signatures can stay cute" and she ATE π₯
π SEE ALSO π
- Kernel file
./include/net/libeth/tx.h enum libeth_sqe_type(9)struct libeth_sqe(9)LIBETH_SQE_CHECK_PRIV(9)libeth_tx_complete(9)
π«Ά go read those too bestie, they're literally right there, iykyk β¨
and that's the page!! this lil gem lives in ./include/net/libeth π and the source/version + date on the original footer says October 2026 β so yeah, mark your calendar, she's a fall release ππ stay slay, go finish your Tx π
π¦ 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