mlx5hws_mat...plate_create(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… mlx5hws_match_template_create(9) β€” ok so bestie, let's talk match templates

Welcome to the Kernel API Manual, bb ✨ β€” today's main character is mlx5hws_match_template_create(9), and honestly? She's kind of a big deal.


πŸŽ€ NAME πŸŽ€

mlx5hws_match_template_create β€” creates a shiny new match template based on the items mask. This template is what you'll use later when you make a matcher. No template, no matcher, no vibes. Periodt.


✨ SYNOPSIS ✨

struct mlx5hws_match_template * mlx5hws_match_template_create (struct
mlx5hws_context *ctx , u32 *match_param , u32 match_param_sz , u8
match_criteria_enable );

That's the whole signature, bestie, copy it exactly, don't freestyle πŸ™ˆ


🌸 ARGUMENTS 🌸

  • ctx β€” the context where your new template gets born 🫢 literally the world she lives in.
  • match_param β€” describes the mask, based on the PRM match parameters. It's giving "what am I even matching against" energy.
  • match_param_sz β€” the size of the match param buffer. Yes, you have to tell her. She's not a mind reader πŸ’€
  • match_criteria_enable β€” a bitmap, one bit for each sub-set in the match_criteria buffer. Cute little bit flags, iconic behavior honestly.

πŸ‘‘ RETURN πŸ‘‘

Pointer to mlx5hws_match_template on success β€” slay πŸ’– β€” and NULL otherwise 😭. Check your pointers, babes, that's the whole lesson.


πŸ¦‹ SEE ALSO πŸ¦‹

Grab a snack, this is a long one but she ate:

The kernel file lives right here ngl:

./drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws.h

And then the whole friend group, 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_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_create(9), mlx5hws_bwc_matcher_destroy(9), mlx5hws_bwc_rule_create(9), mlx5hws_bwc_rule_destroy(9), mlx5hws_bwc_rule_action_update(9)


⭐ ngl the SEE ALSO section is longer than the manpage itself and honestly? Respect. Read it. iykyk.

Mwah πŸ’œ this page came from ./drivers/net/ethernet/mellano..., dated October 2026, and yes the bottom tag still reads mlx5hws_mat...plate_create(9) β€” she's truncated but she's thriving. Byeee 🫢✨

πŸ“¦ where this page comes from