mlx5dv_create_flow_action_modify_header - Flow action modify header for mlx5 provider
#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)
Create a modify header flow steering action, it allows mutating a packet header.
MLX5DV_FLOW_TABLE_TYPE_NIC_RX: RX FLOW TABLE
MLX5DV_FLOW_TABLE_TYPE_NIC_TX: TX FLOW TABLE
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.
ibv_create_flow(3), ibv_create_flow_action(3)