mlx5hws_rule_action_update(9)
π mlx5hws_rule_action_update β the Kernel API Manual, but make it make sense β¨
okay so bestie, welcome to the mlx5hws_rule_action_update(9) page π this is a Kernel API Manual entry, and honestly? it's a glow-up moment for a rule you already made. let's get into it π
β¨ NAME β¨
mlx5hws_rule_action_update β enqueue update actions on an existing rule, periodt π₯
π¦ SYNOPSIS π¦
int mlx5hws_rule_action_update (struct mlx5hws_rule *rule , u8 at_idx ,
struct mlx5hws_rule_action rule_actions[] , struct mlx5hws_rule_attr
*attr );
like, that's the whole signature, no cap π
πΈ ARGUMENTS πΈ
ruleβ a valid rule handle to update. it has to be valid, bestie, this is not the moment to be handing over a fake one πat_idxβ the action template index you're updating the actions with. it'su8, it's cute, it's the where π―rule_actionsβ the rule actions to be executed on match. this is the main character array fr fr πattrβ the rule update attributes. the vibes, the metadata, thestruct mlx5hws_rule_attrof it all π«Ά
β RETURN β
Zero on successful enqueue, non-zero otherwise. that's it. zero = slay, not-zero = not slay π
π§ SEE ALSO π§
so here's the full friend group, iykyk π
Kernel file ./drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws.h
and all these iconic friends:
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_create(9)mlx5hws_rule_destroy(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)
okay and one lil sign-off π this page came from ./drivers/net/ethernet/mellano... (yes it's truncated in the source, don't come for me π) and it's dated October 2026. stay hydrated, keep your rule handles valid, mwah π
π¦ 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