mlx5hws_context_set_peer(9)
π 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 thatpeer_ctxis 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'svhcaid, typed as au16. 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 π
mlx5hws_is_supported(9)mlx5hws_context_open(9)mlx5hws_context_close(9)mlx5hws_table_create(9)mlx5hws_table_destroy(9)mlx5hws_table_get_id(9)mlx5hws_table_set_default_miss(9)mlx5hws_match_template_create(9)mlx5hws_match_template_destroy(9)mlx5hws_action_template_create(9)mlx5hws_action_template_destroy(9)mlx5hws_matcher_create(9)mlx5hws_matcher_destroy(9)mlx5hws_matcher_attach_at(9)mlx5hws_matcher_resize_set_target(9)mlx5hws_matcher_resize_rule_move(9)mlx5hws_rule_create(9)mlx5hws_rule_destroy(9)mlx5hws_rule_action_update(9)mlx5hws_action_get_type(9)mlx5hws_action_get_dev(9)mlx5hws_action_create_dest_drop(9)mlx5hws_action_create_default_miss(9)mlx5hws_action_create_dest_table(9)mlx5hws_action_create_dest_table_num(9)mlx5hws_action_create_dest_match_range(9)mlx5hws_action_create_flow_sampler(9)mlx5hws_action_create_dest_vport(9)mlx5hws_action_create_tag(9)mlx5hws_action_create_counter(9)mlx5hws_action_create_reformat(9)mlx5hws_action_create_modify_header(9)mlx5hws_action_create_aso_meter(9)mlx5hws_action_create_pop_vlan(9)mlx5hws_action_create_push_vlan(9)mlx5hws_action_create_dest_array(9)mlx5hws_action_create_insert_header(9)mlx5hws_action_create_remove_header(9)mlx5hws_action_create_last(9)mlx5hws_action_destroy(9)mlx5hws_send_queue_poll(9)mlx5hws_send_queue_action(9)mlx5hws_debug_dump(9)mlx5hws_bwc_matcher_create(9)mlx5hws_bwc_matcher_destroy(9)mlx5hws_bwc_rule_create(9)mlx5hws_bwc_rule_destroy(9)mlx5hws_bwc_rule_action_update(9)
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
- 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