mlx5dv_create_fl...ion_modify_header(3)

πŸŽ€ mlx5dv_create_flow_action_modify_header πŸŽ€

okay bestie, this page is from the mlx5dv_create_fl...ion_modify_header(3) manual, and it's giving β€œlet me mutate a packet header” energy. iconic. ✨


🌸 NAME 🌸

mlx5dv_create_flow_action_modify_header β€” Flow action modify header for mlx5 provider. no cap, that's the whole name vibe. πŸ’…


✨ SYNOPSIS ✨

              #include <infiniband/mlx5dv.h>

              struct ibv_flow_action *
              mlx5dv_create_flow_action_modify_header(struct ibv_context *ctx,
                                  size_t actions_sz,
                                  uint64_t actions[],
                                  enum mlx5dv_flow_table_type ft_type)

πŸ¦‹ DESCRIPTION πŸ¦‹

so this function creates a modify header flow steering action, and it lets you mutate a packet header. yes, actual packet-header makeover. πŸ’–


πŸ’œ ARGUMENTS πŸ’œ

  • ctx β€” the RDMA device context you're creating the action on. literally the context bestie. 🫢
  • actions_sz β€” the size of the actions buffer, in bytes. count those bytes, queen. πŸ”₯
  • actions β€” a buffer containing the modify actions provided in device spec format (i.e. be64). keep it exact, iykyk. ⭐
  • ft_type β€” defines the flow table type to which the modify header action will be attached. the vibe check for where this action lives. πŸ’«
    • MLX5DV_FLOW_TABLE_TYPE_NIC_RX: RX FLOW TABLE
    • MLX5DV_FLOW_TABLE_TYPE_NIC_TX: TX FLOW TABLE

πŸ‘‘ RETURN VALUE πŸ‘‘

upon success, mlx5dv_create_flow_action_modify_header will return a new struct ibv_flow_action object. slay. ✨

on error, NULL will be returned and errno will be set. not the cute outcome, but at least you know. 😭


🌈 SEE ALSO 🌈


that's the whole page, bestie πŸ’– source/version and date: not listed on this page β€” the footer is just the manual name mlx5dv_create_fl...ion_modify_header(3) β€” so here's your cute lil sign-off instead πŸ«ΆπŸŽ€βœ¨

πŸ“¦ where this page comes from