mlx5_lag_set_port_affinity(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ 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 your struct 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