mlx5hws_acti...e_dest_array(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… mlx5hws_acti...e_dest_array(9) πŸ’…

okay so this is a page from the Kernel API Manual β€” yes, the Kernel API Manual, we're in the big leagues now bestie β€” and it's all about one very specific little function called mlx5hws_action_create_dest_array. buckle up πŸŽ€


✨ NAME ✨

mlx5hws_action_create_dest_array β€” creates a dest array action, and the way this thing works is genuinely iconic: it can duplicate packets and forward them to multiple destinations in the destination list. it's giving "one packet, many homes" energy πŸ¦‹


🌸 SYNOPSIS 🌸

struct mlx5hws_action * mlx5hws_action_create_dest_array (struct
mlx5hws_context *ctx , size_t num_dest , struct mlx5hws_action_dest_attr
*dests , u32 flags );

πŸ’– ARGUMENTS πŸ’–

  • ctx β€” the context in which the new action will be created. like, where the baby action gets born. 🍼
  • num_dest β€” the number of dests attributes. basically the headcount for your destination party.
  • dests β€” the destination array. each one contains a destination action and can have additional actions on top. main character energy, lowkey.
  • flags β€” action creation flags, of the enum mlx5hws_action_flags variety. 🚩

πŸ”₯ RETURN πŸ”₯

a pointer to mlx5hws_action on success, and NULL otherwise. no cap β€” that's the whole deal. if you get a pointer, slay; if you get NULL, that's a vibe check you failed 😭


πŸ¦‹ SEE ALSO πŸ¦‹

first up, the kernel file itself, in all its glory β€” go read it, it's right here bestie:

./drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws.h

and then the whole extended friend group, fr fr, every single one of them πŸ‘‘:


πŸ’€ reminder bestie: if it returns NULL, do not go dereferencing it. that's not quirky, that's a crash.

and that's the page!! mwah 🫢 this little beauty ships from ./drivers/net/ethernet/mellano... in October 2026, page name mlx5hws_acti...e_dest_array(9), and yes the filename really is truncated like that β€” she's mysterious, she's abbreviated, she's everything πŸ’œβœ¨

πŸ“¦ where this page comes from