.\" Automatically generated by Pandoc 2.17.1.1
.\"
.\" Define V font for inline verbatim, using C font in formats
.\" that render this, and otherwise B font.
.ie "\f[CB]x\f[]"x" \{\
. ftr V B
. ftr VI BI
. ftr VB B
. ftr VBI BI
.\}
.el \{\
. ftr V CR
. ftr VI CI
. ftr VB CB
. ftr VBI CBI
.\}
.TH "mlx5dv_create_flow_action_modify_header" "3" "" "" ""
.hy
.SH NAME
.PP
mlx5dv_create_flow_action_modify_header - Flow action modify header for
mlx5 provider
.SH SYNOPSIS
.IP
.nf
\f[C]
#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)
\f[R]
.fi
.SH DESCRIPTION
.PP
Create a modify header flow steering action, it allows mutating a packet
header.
.SH ARGUMENTS
.TP
\f[I]ctx\f[R]
RDMA device context to create the action on.
.TP
\f[I]actions_sz\f[R]
The size of \f[I]actions\f[R] buffer in bytes.
.TP
\f[I]actions\f[R]
A buffer which contains modify actions provided in device spec format
(i.e.\ be64).
.TP
\f[I]ft_type\f[R]
Defines the flow table type to which the modify header action will be
attached.
.RS
.PP
MLX5DV_FLOW_TABLE_TYPE_NIC_RX: RX FLOW TABLE
.PP
MLX5DV_FLOW_TABLE_TYPE_NIC_TX: TX FLOW TABLE
.RE
.SH RETURN VALUE
.PP
Upon success \f[I]mlx5dv_create_flow_action_modify_header\f[R] will
return a new \f[I]struct ibv_flow_action\f[R] object, on error NULL will
be returned and errno will be set.
.SH SEE ALSO
.PP
\f[I]ibv_create_flow(3)\f[R], \f[I]ibv_create_flow_action(3)\f[R]
