mlx5hws_context_close(9)
π«Ά mlx5hws_context_close β bestie edition
okay so this is a page from the Kernel API Manual, and it's about one (1) little function that closes your direct hardware steering context. tiny page, huge "i'm done here" energy π let's get into it.
β¨ NAME β¨
mlx5hws_context_close β closes a context that's being used for direct hardware steering. that's it, that's the job, and she does it flawlessly π
πΈ SYNOPSIS πΈ
int mlx5hws_context_close (struct mlx5hws_context *ctx );
like. look at her. one argument, returns an int, no notes π
π¦ ARGUMENTS π¦
ctxβ themlx5hwscontext you wanna close. like literally the thing you're shutting down. hand her over and let her cook π₯
β RETURN β
returns zero on success, and non zero otherwise. so 0 = slay, anything else = something went sideways π (the page doesn't elaborate and honestly neither will i, that's the whole lore).
π SEE ALSO π
okay this list is LONG, hydrate before you read it, but every single one of these is a real reference and i'm not cutting a single one because they all ate:
Kernel file ./drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws.h
then the whole bestie roster:
mlx5hws_is_supported(9)mlx5hws_context_open(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_create(9)mlx5hws_bwc_matcher_destroy(9)mlx5hws_bwc_rule_create(9)mlx5hws_bwc_rule_destroy(9)mlx5hws_bwc_rule_action_update(9)
quick vibe check bestie: this page doesn't say what happens if you close a context twice, or what the actual non zero error codes are. so i'm not gonna invent them either π€·ββοΈ the manpage said what it said.
π§ sign-off π§
this icon of a page came out of ./drivers/net/ethernet/mellano... and it's dated October 2026 β so yeah, she's from the future and she's still just telling you to close your context π«Άβ¨ bye bestie, go free your resources π
π¦ 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