mlx5hws_bwc_rule_destroy(9)
π mlx5hws_bwc_rule_destroy β¨
okay bestie, so this is a page straight out of the Kernel API Manual (yes, the kernel, we're being fancy today π) and it's all about one tiny little function that's lowkey iconic: mlx5hws_bwc_rule_destroy. Buckle up, it's short but it ate. π
πΈ NAME πΈ
mlx5hws_bwc_rule_destroy β literally the function that destroys a BWC direct rule. that's the whole vibe. no cap. π
π¦ SYNOPSIS π¦
int mlx5hws_bwc_rule_destroy (struct mlx5hws_bwc_rule *bwc_rule );
like, it takes exactly one thing and gives you back an int. minimalist queen. π
π ARGUMENTS π
bwc_ruleβ the rule you're about to destroy. it's astruct mlx5hws_bwc_rule *, and yeah, that's the one getting the goodbye treatment π«Ά
β RETURN β
zeroon success β¨ (slay, that's the good ending)- non zero otherwise π (something went sideways, not the vibe)
π SEE ALSO π
bestie the friend group is HUGE, here's everyone in the group chat π
π§ Kernel file
./drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws.h
π« the whole squad (in order, fr fr)
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_create(9)mlx5hws_bwc_matcher_destroy(9)mlx5hws_bwc_rule_create(9)mlx5hws_bwc_rule_action_update(9)
ok that's the entire page, it's giving "short and sweet and knows exactly what it is" π no warnings, no bugs section, no drama. just destroy the rule and go. π
kisses bestie, this page came from the kernel source at ./drivers/net/ethernet/mellano... and it's dated October 2026 β and yes, this whole thing is mlx5hws_bwc_rule_destroy(9) forever and always. π«Άπβ¨
π¦ 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