mlx5hws_acti...e_dest_vport(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ mlx5hws_action_create_dest_vport β€” Kernel API Manual ✨

okay so bestie, welcome to the Kernel API Manual πŸ’– you're about to learn how to make a real cute direct rule thing that goes straight to a vport. yes that's a whole thing and yes it's iconic.


🌸 NAME 🌸

mlx5hws_action_create_dest_vport β€” Create direct rule goto vport action. literally what it says on the tin, no cap πŸ’…


✨ SYNOPSIS ✨

struct mlx5hws_action * mlx5hws_action_create_dest_vport (struct
mlx5hws_context *ctx , u16 vport_num , bool vhca_id_valid , u16 vhca_id
, u32 flags );

πŸŽ€ ARGUMENTS πŸŽ€

  • ctx β€” the context where your brand new action is gonna live. it's giving "main character setting", everything happens inside it 🫢
  • vport_num β€” the destination vport number. like, where the packets are headed, the addy fr fr.
  • vhca_id_valid β€” a little bool that tells us whether the vhca_id parameter is actually valid. yes queen, consent matters πŸ’€
  • vhca_id β€” the VHCA ID of the destination vport. only meaningful if vhca_id_valid said so.
  • flags β€” action creation flags, and the type is enum mlx5hws_action_flags. slay.

πŸ”₯ RETURN πŸ”₯

pointer to mlx5hws_action on success, NULL otherwise. so like… check it, bestie. don't be out here dereferencing NULL 😭


πŸ‘‘ SEE ALSO πŸ‘‘

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

and all the besties in the group chat:


and that's the whole vibe, bestie 🌈

this cutie came from ./drivers/net/ethernet/mellano..., dated October 2026, and it's out here answering to the name mlx5hws_acti...e_dest_vport(9). byeee, go create some iconic vport actions πŸ’œπŸ¦‹

πŸ“¦ where this page comes from