mlx5hws_mat...e_set_target(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’… mlx5hws_matcher_resize_set_target โ€” Kernel API Manual, bestie edition โœจ

Okay so this is a page from the Kernel API Manual and it's about one very specific little function. Buckle up, it's short but it matters ๐ŸŽ€


๐ŸŒธ NAME ๐ŸŒธ

mlx5hws_matcher_resize_set_target โ€” the function that links two matchers together and turns on moving rules. That's it, that's the whole job ๐Ÿฆ‹


โœจ SYNOPSIS โœจ

int mlx5hws_matcher_resize_set_target (struct mlx5hws_matcher
*src_matcher , struct mlx5hws_matcher *dst_matcher );

Like, literally type it exactly like that, no cap ๐Ÿ’…


๐Ÿซถ ARGUMENTS ๐Ÿซถ

  • src_matcher โ€” the source matcher, aka where you're moving rules from. She's the one packing her bags ๐Ÿ’ผ
  • dst_matcher โ€” the destination matcher, aka where you're moving rules to. She's the one getting the new roommates ๐Ÿ 

๐Ÿ‘‘ DESCRIPTION ๐Ÿ‘‘

Both matchers have to be in the same table type, and they must be created with the match templates and action templates).

Yes bestie, that sentence is a little incomplete in the original and I am not about to invent words that aren't there ๐Ÿ˜ญ Just know: same table type, created with the match templates and action templates. Periodt.

Also, it is the user's responsibility to make sure the destination matcher is allocated with the appropriate size. Not the kernel's problem, not my problem โ€” your problem ๐Ÿ™ˆ So like, size her correctly, okay?

Once the function is done doing its thing, the user is:

  • โœ… Allowed to move rules from the source into the destination matcher.
  • โŒ No longer allowed to insert rules into the source matcher. She's closed for business, doors locked, lights off ๐Ÿ’€

And the stuff you can always do:

  • The user is always allowed to insert rules into the destination matcher.
  • ...and to delete rules from any matcher. Any of them. Go off ๐Ÿ”ฅ

โญ RETURN โญ

Zero on successful move, non-zero otherwise. Classic zero-means-slay situation ๐ŸŒˆ


๐Ÿฆ‹ SEE ALSO ๐Ÿฆ‹

First up, the kernel file itself, exactly where it lives:

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

And now the whole friend group โ€” every single one of these, no skipping, I don't make the rules (I do, actually, but still) ๐Ÿ’–


That's the whole page, bestie! ๐ŸŒˆ It came from ./drivers/net/ethernet/mellano... and it's dated October 2026 (yes, the future, we're iconic like that ๐Ÿ”ฎโœจ). Mwah, go resize responsibly ๐Ÿ’‹๐ŸŽ€

๐Ÿ“ฆ where this page comes from