mlx5hws_rule_create(9)
okay bestie, welcome to the mlx5hws_rule_create(9) page from the Kernel API Manual π this one is literally about enqueuing a create-rule operation, and it's giving βput the rule request in the queueβ main character energy β¨
π NAME π
mlx5hws_rule_create β enqueue create rule operation. π«Ά
β¨ SYNOPSIS β¨
int mlx5hws_rule_create (struct mlx5hws_matcher *matcher , u8 mt_idx ,
u32 *match_param , u8 at_idx , struct mlx5hws_rule_action rule_actions[]
, struct mlx5hws_rule_attr *attr , struct mlx5hws_rule *rule_handle );
π ARGUMENTS π
matcherβ the matcher in which the new rule will be created. literally the home for your new rule πmt_idxβ match template index to create the match with.match_paramβ the match parameter PRM buffer used for value matching.at_idxβ action template index to apply the actions with.rule_actionsβ rule actions to be executed on match.attrβ rule creation attributes.rule_handleβ a valid rule handle. The handle doesn't require any initialization. no cap, zero setup needed π
π₯ RETURN π₯
Zero on successful enqueue, non-zero otherwise. That's the vibe check: 0 means it enqueued, anything else means nope π
π¦ SEE ALSO π¦
The kernel file is right here, bestie: ./drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws.h π
and the whole mlx5hws friend group:
mlx5hws_is_supported(9)mlx5hws_context_open(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_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)
mwah π β source/version ./drivers/net/ethernet/mellano..., date October 2026, page mlx5hws_rule_create(9). stay slay, 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