STRUCT NET_SHAPER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct net_shaper(9)

okay so bestie, welcome to the Kernel API Manual ✨ this one's about struct net_shaper, which literally just represents a shaping node living on the NIC H/W. and the iconique detail: any field that's zeroed out is considered not set. periodt πŸ’…


🌸 SYNOPSIS 🌸

struct net_shaper {
    struct net_shaper_handle parent;
    struct net_shaper_handle handle;
    enum net_shaper_metric metric;
    u64 bw_min;
    u64 bw_max;
    u64 burst;
    u32 priority;
    u32 weight;
 };

like, that's the whole vibe. no cap 🫢


✨ Members ✨

  • parent β€” the unique identifier for the shaper's parent 🧚 usually implied, so don't stress about it
  • handle β€” the unique identifier for this shaper πŸ‘‘ that's her main character energy
  • metric β€” tells you whether the rate limits refer to PPS or BPS πŸ”₯ pick your units, bestie
  • bw_min β€” the minimum guaranteed rate for this shaper πŸ’– she's got a floor
  • bw_max β€” the maximum peak rate allowed for this shaper 🌈 that's the ceiling, fr fr
  • burst β€” the maximum burst for the peek rate of this shaper πŸ’€ yeah it said peek, we're keeping it exactly as written, iykyk
  • priority β€” the scheduling priority for this shaper ⭐ important queen
  • weight β€” the scheduling weight for this shaper πŸŽ€ it's giving balance

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./include/net/net_shaper.h
  • struct net_shaper_ops(9)

bestie reminder: zeroed field = not set. that's the whole rule, don't come for me πŸ™ˆ

so yeah, that's the page πŸ’œ it lives in ./include/net, dated October 2026, and it's filed as struct net_shaper(9) β€” slay, go configure your NIC now 🌸✨

πŸ“¦ where this page comes from