mlx5hws_act...eate_counter(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… mlx5hws_act...eate_counter(9)

okay so this is a page straight out of the Kernel API Manual, bestie β€” yes, that Kernel API Manual. it's giving "low-level networking but make it cute" πŸŽ€ and we're about to read it together, no cap.


✨ NAME ✨

mlx5hws_action_create_counter β€” literally just creating a direct rule counter action. that's the whole vibe. πŸ’«


πŸ¦‹ SYNOPSIS πŸ¦‹

struct mlx5hws_action * mlx5hws_action_create_counter (struct
mlx5hws_context *ctx , u32 obj_id , u32 flags );

look at her. icon. πŸ’…


🌸 ARGUMENTS 🌸

  • ctx β€” the context where your brand-new action is gonna live, like it's moving into the group chat 🫢
  • obj_id β€” the direct rule counter object ID. that's her government name, fr fr.
  • flags β€” the action creation flags (it's a enum mlx5hws_action_flags, so like… the vibe settings ⭐)

πŸ‘‘ RETURN πŸ‘‘

on success you get back a pointer to mlx5hws_action β€” main character energy, we're obsessed. πŸ’– otherwise you get NULL and honestly? 😭 that's a no from her.


πŸ”₯ SEE ALSO πŸ”₯

first up, the receipts β€” go read the Kernel file bestie, it's right here: ./drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws.h πŸ“

and then the whole extended friend group, in order, not a single one skipped because we don't do that here:

like, that's a lot of reading but you're gonna slay it, i believe in you πŸ§šπŸ’œ


ngl there's no big scary warning on this one β€” just remember NULL means it didn't work out, and check the flags enum before you go guessing at behaviour πŸ™ˆ

okay that's the whole page, you ate that πŸ“βœ¨ mwah πŸ’‹

source/version: ./drivers/net/ethernet/mellano... β€” and it's dated October 2026, so yes she's from the future, we stan a time traveler πŸ¦‹πŸ’«

πŸ“¦ where this page comes from