mlx4_SET_VPORT_QOS_set(9)
β¨ mlx4_SET_VPORT_QOS_set(9) β¨
okay bestie, welcome to the Kernel API Manual π this one's short but she's important β it's giving "small function, big responsibilities" energy, fr fr.
πΈ NAME πΈ
mlx4_SET_VPORT_QOS_set β sets the QoS properties of a Vport, periodt. π
So here's the tea: the QoS parameters can be modified at any time, which is lowkey iconic and flexible of them. BUT β and this is the important part, don't skip it β they must be initialized before any QP is associated with the VPort. Like, before. No exceptions. Timing is everything bestie, iykyk π
π¦ SYNOPSIS π¦
int mlx4_SET_VPORT_QOS_set (struct mlx4_dev *dev , u8 port , u8 vport ,
struct mlx4_vport_qos_param *in_param );
Four args, one return value, zero drama. Slay. β¨
π ARGUMENTS π
devβ themlx4_dev. your device of the moment, the main character πportβ the physical port number. yes, physical. like, the actual hardware one πvportβ the Vport id. which virtual port are we setting up, bestie? π§in_paramβ an array ofmlx4_vport_qos_paramwhich holds the requested values. that's right, an array β it's carrying all your QoS wishes in one little bundle π«Ά
π₯ DESCRIPTION π₯
Returns 0 on success, or a negative mlx4_core errno code. no cap, that's the whole description β she's brief but she's giving substance π
real talk though: check that return value. a negative errno is the function telling you something went sideways π
β SEE ALSO β
- Kernel file
./drivers/net/ethernet/mellanox/mlx4/fw_qos.hβ go read it, i promise it's worth it π mlx4_SET_PORT_PRIO2TC(9)mlx4_SET_PORT_SCHEDULER(9)mlx4_ALLOCATE_VPP_get(9)mlx4_ALLOCATE_VPP_set(9)mlx4_SET_VPORT_QOS_get(9)β the getter to this setter, they're literally a matched set π
and that's the whole page, babe π stay hydrated, read your errno codes, and remember to init your QoS params before the QP shows up, ok bye!! πΈπ¦β¨
./drivers/net/ethernet/mellano... β October 2026 β mlx4_SET_VPORT_QOS_set(9)
π¦ 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