mlx5_lag_set_port_affinity(9)
π¦ mlx5_lag_set_port_affinity(9) π¦
okay so bestie, welcome to section 9 of the Kernel API Manual β this is mlx5_lag_set_port_affinity, and honestly? she's a tiny little function with a big job. no cap. π
β¨ NAME β¨
mlx5_lag_set_port_affinity β literally the name, that's the whole vibe π
ngl the original page leaves this one blank, so we're keeping it blank too. the function speaks for herself, she doesn't need a subtitle. main character energy fr fr.
πΈ SYNOPSIS πΈ
void mlx5_lag_set_port_affinity (struct mlx5_lag *ldev , enum
mlx5_lag_port_affinity port );
like, she returns void β nothing comes back, she just does the thing and dips. π«Ά
π ARGUMENTS π
ldevβ the lag device. that's yourstruct mlx5_lag *, the whole little lag situation you're poking at. β¨portβ the affinity you wanna set, and there are exactly three moods, bestie:0β set normal affinity π§1β set affinity to port 1 π₯2β set affinity to port 2 π₯
so like, 0 is the "no thoughts, head empty, normal" setting, and 1 / 2 are you picking a side. choose wisely, iykyk. π
π SEE ALSO π
- Kernel file
./drivers/net/ethernet/mellanox/mlx5/core/lag/mp.c
go read the source, bestie, she's right there in mp.c under the mellanox mlx5 core lag directory. π that's where the real lore lives. β
and that's the whole page!! tiny icon, zero filler, ate and left no crumbs. mwah. π
sign-off szn: this absolute cutie of a page comes from the Kernel API Manual, version / source line reads ./drivers/net/ethernet/mellano... (yes, it's truncated like that in the original, we don't fix it, we respect it π), dated October 2026. see you in the next man page, bestie!! πππ¦
π¦ 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