mlx5hws_context_open(9)
β¨ mlx5hws_context_open(9) β¨
okay bestie, welcome to the mlx5hws_context_open(9) era of the Kernel API Manual π
this is the function that opens up a context so you can do direct rule insertion using hardware steering β yes, hardware steering, we're not doing software vibes over here π₯
π NAME π
mlx5hws_context_open β open a context used for direct rule insertion using hardware steering β¨ (that's HWS for short, iykyk)
πΈ SYNOPSIS πΈ
struct mlx5hws_context * mlx5hws_context_open (struct mlx5_core_dev
*mdev , struct mlx5hws_context_attr *attr );
π¦ ARGUMENTS π¦
mdevβ the device that's gonna be used for HWS, no cap π₯ this is your device, bestie, choose wisely.attrβ the attributes used for context open β¨ like, the whole setting-the-vibe config for your new context.
π RETURN π
a pointer to mlx5hws_context on success π
and NULL otherwise π (ngl, NULL is giving "it's not happening bestie" energy).
π SEE ALSO π
first up, the Kernel file, literally the main character:
./drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws.h
and now the full squad, in order, no one left behind π«Ά:
mlx5hws_is_supported(9)mlx5hws_context_close(9)mlx5hws_context_set_peer(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)
ok that's the whole page bestie, go open that context and slay π
and yes, this iconic lil page comes from ./drivers/net/ethernet/mellano... dated October 2026, which is literally the version + date flex at the bottom ππ
π¦ 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