mlx5hws_act...eate_counter(9)
π mlx5hws_act...eate_counter(9)
okay so this is a page straight out of the Kernel API Manual, bestie β yes, that Kernel API Manual. it's giving "low-level networking but make it cute" π and we're about to read it together, no cap.
β¨ NAME β¨
mlx5hws_action_create_counter β literally just creating a direct rule counter action. that's the whole vibe. π«
π¦ SYNOPSIS π¦
struct mlx5hws_action * mlx5hws_action_create_counter (struct
mlx5hws_context *ctx , u32 obj_id , u32 flags );
look at her. icon. π
πΈ ARGUMENTS πΈ
ctxβ the context where your brand-new action is gonna live, like it's moving into the group chat π«Άobj_idβ the direct rule counter object ID. that's her government name, fr fr.flagsβ the action creation flags (it's aenum mlx5hws_action_flags, so likeβ¦ the vibe settings β)
π RETURN π
on success you get back a pointer to mlx5hws_action β main character energy, we're obsessed. π otherwise you get NULL and honestly? π that's a no from her.
π₯ SEE ALSO π₯
first up, the receipts β go read the Kernel file bestie, it's right here: ./drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws.h π
and then the whole extended friend group, in order, not a single one skipped because we don't do that here:
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_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)
like, that's a lot of reading but you're gonna slay it, i believe in you π§π
ngl there's no big scary warning on this one β just remember NULL means it didn't work out, and check the flags enum before you go guessing at behaviour π
okay that's the whole page, you ate that πβ¨ mwah π
source/version: ./drivers/net/ethernet/mellano... β and it's dated October 2026, so yes she's from the future, we stan a time traveler π¦π«
π¦ 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