mlx5dv_create_flow_action_modify_header(3)

mlx5dv_create_flow_action_modify_header3

Flow action modify header for mlx5 provider

Usage

#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)

Overview

Create a modify header flow steering action, it allows mutating a packet header.

Arguments

ctx

RDMA device context to create the action on.

actions_sz

The size of actions buffer in bytes.

actions

A buffer which contains modify actions provided in device spec format (i.e. be64).

ft_type

Defines the flow table type to which the modify header action will be attached.

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, on error NULL will be returned and errno will be set.

Releases

5 releases since Debian 10 (Buster); the text changed 4 times.

  1. 10
  2. 11
  3. 12
  4. 13
  5. Arch

From rdma-core 65.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.