STRUCT PIE_STATS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ‘‘ struct pie_stats(9) πŸ‘‘

okay so bestie, welcome to the Kernel API Manual ✨ this little cutie is struct pie_stats and she is literally the receipts for your PIE queue β€” every packet that came in, every one that got dropped, all of it πŸ’… no cap, she's just a stats container and she's serving main character energy.


✨ NAME ✨

struct pie_stats β€” contains pie stats πŸ₯§ like, that's it, that's the whole vibe. she holds the numbers, she doesn't do the math herself 🫢


🌸 SYNOPSIS 🌸

struct pie_stats {
    u32 packets_in;
    u32 dropped;
    u32 overlimit;
    u32 ecn_mark;
    u32 maxq;
 };

so it's giving five u32 fields, one struct, zero drama β€” every single member is a u32, periodt πŸ’–


πŸ¦‹ Members πŸ¦‹

bestie, let's do a vibe check on every single field one by one, no skipping, iykyk πŸ‘‘

  • packets_in β€” the total number of packets enqueued πŸ”₯ like, the whole headcount of who got let into the queue. icon behaviour, honestly.
  • dropped β€” packets dropped due to pie action 😭 yeah, PIE said "not you" and yeeted them. this is her own doing, not a space issue β€” important distinction, ngl πŸ’€
  • overlimit β€” packets dropped due to lack of space in queue πŸ™ˆ the queue was simply too full, no room at the inn, sorry bestie. different reason from dropped, don't mix them up fr fr.
  • ecn_mark β€” packets marked with ECN ✨ these ones got the little mark instead of the boot β€” the polite warning, the "i'm watching you" of the network world 🌈
  • maxq β€” the maximum queue size ⭐ the absolute ceiling, the final boss, the biggest she's ever been πŸŽ€

πŸ’œ SEE ALSO πŸ’œ

  • Kernel file ./include/net/pie.h πŸ“ (that's where she lives, go say hi)
  • struct pie_params(9) β€” the settings bestie 🧚
  • struct pie_vars(9) β€” the moving parts bestie πŸ“
  • struct pie_skb_cb(9) β€” the skb control block bestie πŸ¦‹

that's the whole page, you ate that πŸ’…

shoutout to the source location ./include/net and the date October 2026 β€” and yes, this manpage is still legally struct pie_stats(9) at the bottom, so mwah, bye bestie πŸŽ€πŸ’–

πŸ“¦ where this page comes from