mlx5hws_act...te_aso_meter(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… mlx5hws_action_create_aso_meter β€” from the Kernel API Manual bestie πŸŽ€

okay so picture this: it's the Kernel API Manual, it's October 2026, and we're about to make a whole direct rule ASO flow meter action out of thin air. main character energy fr fr.


✨ NAME ✨

mlx5hws_action_create_aso_meter β€” makes a direct rule ASO flow meter action. that's it, that's the whole thing. she's an action-creator and she's booked and busy πŸ’–


🌸 SYNOPSIS 🌸

struct mlx5hws_action * mlx5hws_action_create_aso_meter (struct
mlx5hws_context *ctx , u32 obj_id , u8 return_reg_c , u32 flags );

like, four things in, one pointer out. we love a consistent queen πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • ctx β€” the context where your shiny new action is gonna live. she needs a home, okay?? give her a context 🏠
  • obj_id β€” the ASO object ID. your object's government name, if you will πŸͺͺ
  • return_reg_c β€” copy the ASO object value into this reg_c… but like, only after a packet hits a rule with this ASO object. timing is everything bestie ✨
  • flags β€” action creation flags, and they're of type enum mlx5hws_action_flags (yes, the enum name matters, write it down πŸ“)

⭐ RETURN ⭐

  • pointer to mlx5hws_action on success πŸ’–
  • NULL otherwise 😭

that's literally it. no in-between, no "it depends", no vibe check. pointer or nothing.


πŸ”₯ SEE ALSO πŸ”₯

first up, the source of truth β€” Kernel file ./drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws.h (go read it, iykyk πŸ“–).

and now the whole friend group, no one gets left out 🫢:

forty-eight cross-refs and every single one slayed. periodt πŸ’…


ngl, the whole vibe is: create the action, pass the context, the ASO object ID, the return_reg_c to copy the ASO object value into after a packet hits a rule with this ASO object, and the flags. return the pointer, or NULL. that's the tea β˜•

and that's the page bestie!! 🌈 source: ./drivers/net/ethernet/mellano... (yes it's truncated in the original, don't come for me πŸ’€), dated October 2026, and we're out here repping mlx5hws_act...te_aso_meter(9) til the very last line. mwah πŸ“πŸ§šπŸ’œ

πŸ“¦ where this page comes from