mlx5hws_act...nsert_header(9)
β¨ mlx5hws_act...nsert_header(9) β¨
okay so bestie, this is a page straight out of the Kernel API Manual (section 9, we love a kernel man page moment π ) and it's all about one very specific little function. let's get into it π«Ά
πΈ NAME πΈ
mlx5hws_action_create_insert_header β the one that creates an insert header action. yes, that's the whole job. iconic, focused, knows what it wants π
π¦ SYNOPSIS π¦
struct mlx5hws_action * mlx5hws_action_create_insert_header (struct
mlx5hws_context *ctx , u8 num_of_hdrs , struct
mlx5hws_action_insert_header *hdrs , u32 log_bulk_size , u32 flags );
look at that signature. five arguments, one pointer back. very demure, very mindful πβ¨
π ARGUMENTS π
ctxβ the context where your brand new action is gonna live. it's giving "this is the world we're building in" πnum_of_hdrsβ how many headers you're handing over in thehdrsarray. count them, bestie, don't vibe-guess π’hdrsβ the headers array, packed with all your header info. the main character of the argument list fr fr πlog_bulk_sizeβ the number of unique values used with this insert header. (the name sayslog_, the description says "number of unique values" β we're reporting it exactly as written, no editorializing π)flagsβ action creation flags, and they're of typeenum mlx5hws_action_flagsπ©
β RETURN β
a pointer to mlx5hws_action when it works π β and NULL otherwise π. that's the whole vibe check: non-NULL = slay, NULL = try again.
π SEE ALSO π
first up, the β¨ Kernel file β¨ β go touch the source, it's right here:
./drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws.h
and now the extended universe, aka the whole friend group of related pages π«Ά:
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_dest_array(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)
like i said. the whole friend group. go read them all, i'll wait π§
ngl the man page header got truncated in the wild as mlx5hws_act...nsert_header(9) β that's not a typo on my end, that's literally how it's printed, and yes it's giving "character limit on the group chat name" π
okay and one last cute sign-off π the source path got cut off too, printed as ./drivers/net/ethernet/mellano... (the actual file is the mellanox one up in SEE ALSO, iykyk π), and the date on this whole thing is October 2026. so mark your calendars bestie, the kernel API manual said october 2026 and we're keeping it. 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