mlx4_SET_PORT_SCHEDULER(9)
π mlx4_SET_PORT_SCHEDULER β kernel API manual, bestie edition π
okay so this is a page from the Kernel API Manual, and honestly? it's a lil iconic. it's mlx4_SET_PORT_SCHEDULER(9), and we're about to make it make sense. π
β¨ NAME β¨
mlx4_SET_PORT_SCHEDULER β this routine configures the arbitration between traffic classes (ETS) and configured rate limit for traffic classes. fr fr that's the whole job.
so here's the tea: tc_tx_bw, pg and ratelimit are arrays where each index represents a TC (traffic class, iykyk). and the description for those parameters below? yeah, it refers to a single TC. one at a time, one at a time. π
π¦ SYNOPSIS π¦
int mlx4_SET_PORT_SCHEDULER (struct mlx4_dev *dev , u8 port , u8
*tc_tx_bw , u8 *pg , u16 *ratelimit );
like yes, that's a lot of asterisks, but we're built different. β¨
π ARGUMENTS π
devβ anmlx4_dev. that's it, that's the whole description, and honestly sometimes that's enough. π«Άportβ the physical port number.tc_tx_bwβ the percentage of the bandwidth allocated for this traffic class within a TC group. and here's the important part, bestie, so pay attention: the sum of thebw_percentageof all the traffic classes within a TC group must equal 100% for correct operation. like, 100%. not 99, not 101. the math has to math. πpgβ the TC group that this traffic class is associated with.ratelimitβ the maximal bandwidth allowed for use by this traffic class. yes, maximal. it's giving boundaries. π
π§ DESCRIPTION π§
returns 0 on success, or a negative mlx4_core errno code. so if you get a zero back, slay β that's your win. anything negative? that's an errno telling you what went sideways. π
π SEE ALSO π
- Kernel file
./drivers/net/ethernet/mellanox/mlx4/fw_qos.h mlx4_SET_PORT_PRIO2TC(9)mlx4_ALLOCATE_VPP_get(9)mlx4_ALLOCATE_VPP_set(9)mlx4_SET_VPORT_QOS_get(9)mlx4_SET_VPORT_QOS_set(9)
ok that's the whole page. no cap, you now know more about traffic class arbitration than like 90% of the group chat. icon behavior. π¦π
signed off from ./drivers/net/ethernet/mellano... β October 2026, in the mlx4_SET_PORT_SCHEDULER(9) era. mwah. ππβ¨
π¦ 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