mlx5hws_bwc_matcher_create(9)
π mlx5hws_bwc_matcher_create β Kernel API Manual β¨
okay bestie, welcome to the mlx5hws_bwc_matcher_create(9) glow-up page πΈ this one lives in the Kernel API Manual and it's literally the moment a brand-new BWC direct rule matcher gets born. let's get into it π«Ά
π NAME π
mlx5hws_bwc_matcher_create β Create a new BWC direct rule matcher. periodt. π
β¨ SYNOPSIS β¨
struct mlx5hws_bwc_matcher * mlx5hws_bwc_matcher_create (struct
mlx5hws_table *table , u32 priority , u8 match_criteria_enable , struct
mlx5hws_match_parameters *mask );
like, that's the whole signature, no cap π₯
π¦ ARGUMENTS π¦
tableβ The table in which the new matcher will be opened. this is the vibe container, the matcher moves in here πpriorityβ Priority for this BWC matcher. it's au32, so like, pick your rank β¨match_criteria_enableβ Bitmask that defines matching criteria.u8, bitmask, she's doing bit math ngl πmaskβ Match parameters. this is yourstruct mlx5hws_match_parameters *, the actual what-to-match tea π
π DESCRIPTION π
okay so this function does the following (spoiler: it's a three-step serve):
- creates match template based on flow items π§
- creates an empty action template π
- creates a usual
mlx5hws_matcherwith these mt and at, setting its size to minimal π
like β mt and at in, minimal size out. iconic behavior honestly π
π NOTES π
read these before you @ me, fr fr π
table->ctxmust have BWC support β if it doesn't, we're not doing this, bestie π- complex rules are not supported β nope, not a thing, don't try it π
β RETURN β
pointer to mlx5hws_bwc_matcher on success or NULL otherwise. so like, check for NULL or it's giving undefined vibes π«Ά
π₯ SEE ALSO π₯
Kernel file ./drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws.h β go read it, iykyk π
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_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_destroy(9)mlx5hws_bwc_rule_create(9)mlx5hws_bwc_rule_destroy(9)mlx5hws_bwc_rule_action_update(9)
and that's the page, bestie π mwah π β this cutie came from ./drivers/net/ethernet/mellano... and she's dated October 2026, so like, future icon behavior fr fr βπ
π¦ 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