STRUCT LIBETH_CQ_PP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 🌈


🫢 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