mlx5hws_rule_create(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to the mlx5hws_rule_create(9) page from the Kernel API Manual πŸ’– this one is literally about enqueuing a create-rule operation, and it's giving β€œput the rule request in the queue” main character energy ✨

πŸŽ€ NAME πŸŽ€

mlx5hws_rule_create β€” enqueue create rule operation. 🫢

✨ SYNOPSIS ✨

int mlx5hws_rule_create (struct mlx5hws_matcher *matcher , u8 mt_idx ,
       u32 *match_param , u8 at_idx , struct mlx5hws_rule_action rule_actions[]
       , struct mlx5hws_rule_attr *attr , struct mlx5hws_rule *rule_handle );

πŸ’… ARGUMENTS πŸ’…

  • matcher β€” the matcher in which the new rule will be created. literally the home for your new rule 🏠
  • mt_idx β€” match template index to create the match with.
  • match_param β€” the match parameter PRM buffer used for value matching.
  • at_idx β€” action template index to apply the actions with.
  • rule_actions β€” rule actions to be executed on match.
  • attr β€” rule creation attributes.
  • rule_handle β€” a valid rule handle. The handle doesn't require any initialization. no cap, zero setup needed πŸ™ˆ

πŸ”₯ RETURN πŸ”₯

Zero on successful enqueue, non-zero otherwise. That's the vibe check: 0 means it enqueued, anything else means nope 😭

πŸ¦‹ SEE ALSO πŸ¦‹

The kernel file is right here, bestie: ./drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws.h πŸ“

and the whole mlx5hws friend group:

mwah πŸ’‹ β€” source/version ./drivers/net/ethernet/mellano..., date October 2026, page mlx5hws_rule_create(9). stay slay, bestie 🫢

πŸ“¦ where this page comes from