mlx5hws_context_set_peer(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… mlx5hws_context_set_peer(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual ✨ β€” this page is all about mlx5hws_context_set_peer, and honestly it's a short one, so grab your iced coffee and let's go πŸ“


🌸 NAME 🌸

mlx5hws_context_set_peer β€” set a peer context, no cap. Each context can have multiple contexts as peers, so it's giving "the more the merrier" energy πŸ‘‘


✨ SYNOPSIS ✨

void mlx5hws_context_set_peer (struct mlx5hws_context *ctx , struct mlx5hws_context *peer_ctx , u16 peer_vhca_id );

like, it returns void, so there's literally nothing coming back at you β€” the function just does its thing and dips πŸ’¨


πŸŽ€ ARGUMENTS πŸŽ€

your three little besties that you gotta hand over:

  • ctx β€” the context that peer_ctx is gonna get peered to. it's the main character here, the one receiving the friendship πŸ’–
  • peer_ctx β€” the peer context itself. this is the one being introduced 🫢
  • peer_vhca_id β€” the peer context's vhca id, typed as a u16. yes you gotta bring it, it's part of the vibe check πŸ”₯

πŸ¦‹ SEE ALSO πŸ¦‹

first up, the kernel file this whole fam lives in:

./drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws.h

and now the whole extended friend group, in order, exactly as they appear πŸ‘‡


lowkey the whole peer-linking thing is a vibe, just remember every context can have multiple peers β€” it's not a situationship, it's a polycule of contexts πŸ’€πŸ«Ά

and that's the page, bestie! 🌈 mwah πŸ’‹ β€” this one's from ./drivers/net/ethernet/mellano... and it's dated October 2026, so mark your calendar and stan responsibly πŸ’œβœ¨

πŸ“¦ where this page comes from