mlx5hws_table_create(9)
β¨ mlx5hws_table_create β¨
okay bestie, welcome to the Kernel API Manual π this one's about spinning up a brand-new direct rule table, and it's lowkey iconic because each table can hold multiple matchers β like, a whole little squad of matchers living rent-free in one table π«Ά slay.
πΈ NAME πΈ
mlx5hws_table_create β creates a new direct rule table. and like, not just one lonely matcher either: each table can contain multiple matchers, periodt π
π¦ SYNOPSIS π¦
struct mlx5hws_table * mlx5hws_table_create (struct mlx5hws_context *ctx
, struct mlx5hws_table_attr *attr );
that's the whole vibe β you hand it a context and some attrs, and it hands you back a table pointer (or doesn't, we'll get there π).
π ARGUMENTS π
ctxβ the context in which the new table will be opened. like, this is the world your table gets born into πattrβ attributes used for table creation. the ~aesthetic~ settings, basically β¨
π RETURN π
a pointer to mlx5hws_table on success, and NULL otherwise π so yeah, check it, bestie β a NULL is not a slay.
π SEE ALSO π
first up, the kernel file, no cap:
Kernel file
./drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws.h
and then the whole friend group, every single one, in order, not skipping anybody π«Ά:
mlx5hws_is_supported(9), mlx5hws_context_open(9),
mlx5hws_context_close(9), mlx5hws_context_set_peer(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_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 entire group chat and they ALL got invited π iykyk.
ngl this page is giving "short but essential" β the whole plot is: give itctx+attr, get a table orNULL. that's it, that's the arc π₯
and finally, a cute little sign-off π this one comes from ./drivers/net/ethernet/mellano... (yes that's the source/version line, she's shy so she got shortened π) and it's dated October 2026 β mark your calendars, bestie π and that's the mlx5hws_table_create(9) page, done and dusted, periodt β¨π¦
π¦ 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