STRUCT NET_SHAPER(9)
π 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 ithandleβ the unique identifier for this shaper π that's her main character energymetricβ tells you whether the rate limits refer to PPS or BPS π₯ pick your units, bestiebw_minβ the minimum guaranteed rate for this shaper π she's got a floorbw_maxβ the maximum peak rate allowed for this shaper π that's the ceiling, fr frburstβ the maximum burst for the peek rate of this shaper π yeah it said peek, we're keeping it exactly as written, iykykpriorityβ the scheduling priority for this shaper β important queenweightβ 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms