mlx5hws_acti...e_dest_array(9)
π mlx5hws_acti...e_dest_array(9) π
okay so this is a page from the Kernel API Manual β yes, the Kernel API Manual, we're in the big leagues now bestie β and it's all about one very specific little function called mlx5hws_action_create_dest_array. buckle up π
β¨ NAME β¨
mlx5hws_action_create_dest_array β creates a dest array action, and the way this thing works is genuinely iconic: it can duplicate packets and forward them to multiple destinations in the destination list. it's giving "one packet, many homes" energy π¦
πΈ SYNOPSIS πΈ
struct mlx5hws_action * mlx5hws_action_create_dest_array (struct
mlx5hws_context *ctx , size_t num_dest , struct mlx5hws_action_dest_attr
*dests , u32 flags );
π ARGUMENTS π
ctxβ the context in which the new action will be created. like, where the baby action gets born. πΌnum_destβ the number ofdestsattributes. basically the headcount for your destination party.destsβ the destination array. each one contains a destination action and can have additional actions on top. main character energy, lowkey.flagsβ action creation flags, of theenum mlx5hws_action_flagsvariety. π©
π₯ RETURN π₯
a pointer to mlx5hws_action on success, and NULL otherwise. no cap β that's the whole deal. if you get a pointer, slay; if you get NULL, that's a vibe check you failed π
π¦ SEE ALSO π¦
first up, the kernel file itself, in all its glory β go read it, it's right here bestie:
./drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws.h
and then the whole extended friend group, fr fr, every single one of them π:
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_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_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)
π reminder bestie: if it returns NULL, do not go dereferencing it. that's not quirky, that's a crash.
and that's the page!! mwah π«Ά this little beauty ships from ./drivers/net/ethernet/mellano... in October 2026, page name mlx5hws_acti...e_dest_array(9), and yes the filename really is truncated like that β she's mysterious, she's abbreviated, she's everything πβ¨
π¦ 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