mlx5hws_act...odify_header(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… mlx5hws_act...odify_header(9) β€” Kernel API Manual πŸ’…

okay bestie, buckle up, because this is the page for mlx5hws_action_create_modify_header from the Kernel API Manual, section 9. yeah. that's the one. she's a little niche but she's iconic πŸŽ€


✨ NAME ✨

mlx5hws_action_create_modify_header β€” create a direct rule modify header action. that's it, that's the whole thing, but like... explained properly below 🫢


🌸 SYNOPSIS 🌸

struct mlx5hws_action * mlx5hws_action_create_modify_header (struct
mlx5hws_context *ctx , u8 num_of_patterns , struct
mlx5hws_action_mh_pattern *patterns , u32 log_bulk_size , u32 flags );

literally just one function, no cap, and it returns a pointer to struct mlx5hws_action πŸ’–


πŸ¦‹ ARGUMENTS πŸ¦‹

okay so here's the tea on every single parameter, and yes you need all of them:

  • ctx β€” the context where your brand new action is gonna live. think of it as the group chat this action gets added to πŸ’¬
  • num_of_patterns β€” how many patterns you actually put in the patterns array. like, count them. don't lie to her.
  • patterns β€” the array itself, carrying all the pattern info. this is the main character of the whole function ngl πŸ‘‘
  • log_bulk_size β€” the number of unique values used with this pattern. yes that's the description, no I'm not elaborating, it means what it says ✨
  • flags β€” the action creation flags, and they come from enum mlx5hws_action_flags. real ones know.

⭐ RETURN ⭐

she gives you a pointer to mlx5hws_action on success πŸ’–

and NULL otherwise πŸ™ˆ that's it. no in-between. no "maybe". it's giving all or nothing, periodt.


🌈 SEE ALSO 🌈

first up, the Kernel file itself, go read the source bestie, it's right here:

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

and then the whole extended friend group of pages, in the exact order they were listed, no gatekeeping:

that's the whole roster, go follow them all, they all post good content πŸ’œ


πŸ’€ tiny reminder bestie: the return value can be NULL, and that is not a vibe. check it before you dereference, or the kernel will humble you in front of everyone. fr fr.

and that's the page!! πŸŽ€ source and version live at ./drivers/net/ethernet/mellano... and she was dated October 2026 β€” mwah, sending you off with a kiss, go modify some headers responsibly πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from