mlx5hws_acti...ate_reformat(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… mlx5hws_action_create_reformat β€” Kernel API Manual ✨

okay bestie, welcome to the Kernel API Manual page for mlx5hws_acti...ate_reformat(9) πŸŽ€ this one's a little function that makes a direct rule reformat action, and it's giving very much "hardware offload main character energy" πŸ‘‘

🌸 NAME 🌸

mlx5hws_action_create_reformat β€” Create direct rule reformat action. πŸ’–

✨ SYNOPSIS ✨

struct mlx5hws_action * mlx5hws_action_create_reformat (struct
mlx5hws_context *ctx , enum mlx5hws_action_type reformat_type , u8
num_of_hdrs , struct mlx5hws_action_reformat_header *hdrs , u32
log_bulk_size , u32 flags );

like literally that's the whole signature, no notes πŸ’…

πŸ¦‹ ARGUMENTS πŸ¦‹

  • ctx β€” the context in which the new action will be created. it's the world this little action gets born into 🫢
  • reformat_type β€” the type of reformat, prefixed with MLX5HWS_ACTION_TYP_REFORMAT. so like, pick your flavor ✨
  • num_of_hdrs β€” the number of provided headers in the hdrs array. count them fr fr πŸ”’
  • hdrs β€” the headers array containing header information. the whole header situation lives in here πŸ“š
  • log_bulk_size β€” the number of unique values used with this reformat. ngl it's literally called log bulk size, keep that in mind bestie πŸ’€
  • flags β€” action creation flags (enum mlx5hws_action_flags). flags are flags, you know the vibe πŸŽ€

πŸ‘‘ RETURN πŸ‘‘

pointer to mlx5hws_action on success, NULL otherwise. that's it, that's the deal β€” no cap 😭 if it hands you a NULL it simply was not the vibe πŸ™ˆ

🌈 SEE ALSO 🌈

Kernel file ./drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws.h β€” the blueprint, iykyk πŸ“–

and now the full friend group, gather round besties 🫢


πŸ’œ that's the whole page bestie, go forth and reformat ✨ this came from ./drivers/net/ethernet/mellano... and it's dated October 2026 🌸 mwah, slay, periodt πŸŽ€

πŸ“¦ where this page comes from