STRUCT PIE_PARAMS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so this is struct pie_params from the kernel API manual β€” section 9, bestie, we're in the deep internals now πŸ’… β€” and it's literally just the struct that holds all the pie parameters. that's it. that's the whole vibe. it contains pie parameters. iconic of it honestly πŸ₯§βœ¨


✨ SYNOPSIS ✨

here's the whole thing, typed out exactly, no cap:

struct pie_params {
    psched_time_t target;
    u32 tupdate;
    u32 limit;
    u32 alpha;
    u32 beta;
    u8 ecn;
    u8 bytemode;
    u8 dq_rate_estimator;
 };

look at her. a whole little struct. main character energy fr fr 🫢


πŸ’… Members πŸ’…

okay so now the important part, the members, one by one, no skipping, i would never πŸ™ˆ

  • target β€” the target delay, measured in pschedtime. that's the number you're aiming for, the goal, the dream πŸŽ€
  • tupdate β€” the interval at which the drop probability gets recalculated πŸ”„
  • limit β€” the total number of packets that can be in the queue. the cap. the ceiling. the "no more than this, bestie" ⭐
  • alpha β€” a parameter that controls drop probability 🌸
  • beta β€” another parameter that controls drop probability. her and alpha are a duo, iykyk πŸ’œ
  • ecn β€” is ECN marking of packets enabled? yes/no, that's the whole question πŸ‘‘
  • bytemode β€” is the drop probability scaled based on pkt size? πŸ‘€
  • dq_rate_estimator β€” is Little's law used for qdelay calculation? that's the literally-what-it-says field name and i respect the honesty πŸ”₯
ngl, half of these are just "is this a thing, yes or no" flags, and honestly? slay. readable code is a flex πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

go look at the kernel file ./include/net/pie.h and also these besties:

  • struct pie_vars(9)
  • struct pie_stats(9)
  • struct pie_skb_cb(9)

and that's the page!! mwah πŸ’– this one lives in ./include/net, dated October 2026, and it's struct pie_params(9) β€” go read the other structs too, they're all in this together 🧚✨

πŸ“¦ where this page comes from