STRUCT LIBETH_SQ_NAPI_STATS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– STRUCT LIBETH_SQ_NAPI_STATS(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual (section 9, we're in the deep kernel weeds today ✨) β€” this page is all about struct libeth_sq_napi_stats, which is literally just the "hot" counters you update in the Tx completion loop πŸ”₯ ngl the name is a mouthful but the vibe is simple: it's a lil bag of numbers that get bumped constantly, so they gotta stay quick to touch.


✨ NAME ✨

struct libeth_sq_napi_stats β€” the "hot" counters you update in the Tx completion loop πŸŽ€


🌸 SYNOPSIS 🌸

struct libeth_sq_napi_stats {
    union {
      struct {
        u32 packets;
        u32 bytes;
      };
      u32 raw[];
   };
};

πŸ¦‹ Members πŸ¦‹

  • {unnamed_union} β€” anonymous πŸ‘» (yes, it's really called that, she's mysterious)
  • {unnamed_struct} β€” also anonymous πŸ’… another no-name icon
  • packets β€” the completed frames counter, like a little tally of frames that made it through πŸŽ‰
  • bytes β€” the sum of bytes of the completed frames above β€” paired up with packets, they're a matching set 🫢
  • raw β€” an alias so you can access all the fields as an array, in case that's your vibe πŸ”₯ iykyk

πŸ’œ SEE ALSO πŸ’œ

bestie go read the kernel file ./include/net/libeth/types.h and also these iconic siblings:
  • struct libeth_rq_napi_stats(9)
  • struct libeth_xdpsq_napi_stats(9)
  • struct libeth_xdpsq_lock(9)
  • struct libeth_xdpsq_timer(9)
  • struct libeth_xdp_buff_stash(9)

and that's the whole thing, bestie β€” slay πŸ’…βœ¨ this page comes to you from ./include/net/libeth, dated October 2026, and it's filed under struct libeth_sq_napi_stats(9). go forth and count those packets πŸŽ€πŸ’–πŸ¦‹

πŸ“¦ where this page comes from