mlx5hws_acti..._match_range(9)
π mlx5hws_action_create_dest_match_range β the Kernel API Manual girlies know β¨
okay so bestie, come sit with me, because this one is literally a whole vibe and it's from the Kernel API Manual (yes, the actual manual, we're fancy now π). We're talking about mlx5hws_action_create_dest_match_range β the function that builds you a direct rule range match action. Sounds scary? It's giving "math class" but honestly it's so chill once you get it. π¦
β¨ NAME β¨
mlx5hws_action_create_dest_match_range β Create direct rule range match action. That's it, that's the whole job, and she does it flawlessly. π
πΈ SYNOPSIS πΈ
struct mlx5hws_action * mlx5hws_action_create_dest_match_range (struct
mlx5hws_context *ctx , u32 field , struct mlx5_flow_table *hit_ft ,
struct mlx5_flow_table *miss_ft , u32 min , u32 max , u32 flags );
look at her. seven arguments. seven little besties all lined up. not me being obsessed with a function signature π
π§ ARGUMENTS π§
okay so these are the parameters and yes, every single one matters, no skipping, we don't do that here π
ctxβ the context where your shiny new action gets created. it's the whole environment, the main character of the setup, you need her.fieldβ the field we're comparing the value against. (the original says "comapare" and honestly? typos are a vibe, we keep them in spirit β comparison queen π )hit_ftβ the flow table you go to on a hit. yass, success path, gold star βmiss_ftβ the flow table you go to on a miss. it happens to the best of us πminβ the minimal value of the field that still counts as a hit. the floor, the bare minimum, respect it πmaxβ the maximal value of the field that still counts as a hit. the ceiling, the limit, the "you shall not pass" π₯flagsβ action creation flags, and they're of typeenum mlx5hws_action_flags. cute little enum, doing cute little enum things π
π«Ά RETURN π«Ά
on success you get a pointer to mlx5hws_action β slay, iconic, exactly what you wanted β¨
otherwise you get NULL. and ngl, NULL is never the vibe, but at least you know π
π SEE ALSO π
the whole friend group, fr fr β nobody gets left out:
the kernel file, first of all: ./drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws.h
and now the full squad, in order, no cap:
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_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)
like, that's the whole friend group chat right there. add them all, they're all valid π«Ά
ok and one last thing β this page lives at ./drivers/net/ethernet/mellano... (yes, truncated, she's mysterious like that π
) and it's dated October 2026, so future-girlie behavior only. mwah, go build some range match actions, you're gonna eat πβ¨π
ily, go touch grass, then go read the kernel headers π
π¦ 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