mlx5hws_bwc_matcher_create(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

okay bestie, welcome to the mlx5hws_bwc_matcher_create(9) glow-up page 🌸 this one lives in the Kernel API Manual and it's literally the moment a brand-new BWC direct rule matcher gets born. let's get into it 🫢


πŸŽ€ NAME πŸŽ€

mlx5hws_bwc_matcher_create β€” Create a new BWC direct rule matcher. periodt. πŸ’…


✨ SYNOPSIS ✨

struct mlx5hws_bwc_matcher * mlx5hws_bwc_matcher_create (struct
mlx5hws_table *table , u32 priority , u8 match_criteria_enable , struct
mlx5hws_match_parameters *mask );

like, that's the whole signature, no cap πŸ”₯


πŸ¦‹ ARGUMENTS πŸ¦‹

  • table β€” The table in which the new matcher will be opened. this is the vibe container, the matcher moves in here 🏠
  • priority β€” Priority for this BWC matcher. it's a u32, so like, pick your rank ✨
  • match_criteria_enable β€” Bitmask that defines matching criteria. u8, bitmask, she's doing bit math ngl πŸ’€
  • mask β€” Match parameters. this is your struct mlx5hws_match_parameters *, the actual what-to-match tea πŸ“

🌈 DESCRIPTION 🌈

okay so this function does the following (spoiler: it's a three-step serve):

  • creates match template based on flow items 🧚
  • creates an empty action template πŸŽ€
  • creates a usual mlx5hws_matcher with these mt and at, setting its size to minimal πŸ’–

like β€” mt and at in, minimal size out. iconic behavior honestly πŸ‘‘


πŸ’€ NOTES πŸ’€

read these before you @ me, fr fr πŸ™ˆ
  • table->ctx must have BWC support β€” if it doesn't, we're not doing this, bestie 😭
  • complex rules are not supported β€” nope, not a thing, don't try it πŸ’…

⭐ RETURN ⭐

pointer to mlx5hws_bwc_matcher on success or NULL otherwise. so like, check for NULL or it's giving undefined vibes 🫢


πŸ”₯ SEE ALSO πŸ”₯

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


and that's the page, bestie πŸŽ€ mwah πŸ’‹ β€” this cutie came from ./drivers/net/ethernet/mellano... and she's dated October 2026, so like, future icon behavior fr fr β­πŸ’œ

πŸ“¦ where this page comes from