mlx5hws_acti...ate_reformat(9)
π mlx5hws_action_create_reformat β Kernel API Manual β¨
okay bestie, welcome to the Kernel API Manual page for mlx5hws_acti...ate_reformat(9) π this one's a little function that makes a direct rule reformat action, and it's giving very much "hardware offload main character energy" π
πΈ NAME πΈ
mlx5hws_action_create_reformat β Create direct rule reformat action. π
β¨ SYNOPSIS β¨
struct mlx5hws_action * mlx5hws_action_create_reformat (struct
mlx5hws_context *ctx , enum mlx5hws_action_type reformat_type , u8
num_of_hdrs , struct mlx5hws_action_reformat_header *hdrs , u32
log_bulk_size , u32 flags );
like literally that's the whole signature, no notes π
π¦ ARGUMENTS π¦
ctxβ the context in which the new action will be created. it's the world this little action gets born into π«Άreformat_typeβ the type of reformat, prefixed withMLX5HWS_ACTION_TYP_REFORMAT. so like, pick your flavor β¨num_of_hdrsβ the number of provided headers in thehdrsarray. count them fr fr π’hdrsβ the headers array containing header information. the whole header situation lives in here πlog_bulk_sizeβ the number of unique values used with this reformat. ngl it's literally called log bulk size, keep that in mind bestie πflagsβ action creation flags (enum mlx5hws_action_flags). flags are flags, you know the vibe π
π RETURN π
pointer to mlx5hws_action on success, NULL otherwise. that's it, that's the deal β no cap π if it hands you a NULL it simply was not the vibe π
π SEE ALSO π
Kernel file ./drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws.h β the blueprint, iykyk π
and now the full friend group, gather round besties π«Ά
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_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)
π that's the whole page bestie, go forth and reformat β¨ this came from ./drivers/net/ethernet/mellano... and it's dated October 2026 πΈ mwah, slay, periodt π
π¦ 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