1mlx5dv_create_flow_action_packet_remfloxr5mdavt_(c3r)eate_flow_action_packet_reformat(3)
2
3
4

NAME

6       mlx5dv_create_flow_action_packet_reformat - Flow action reformat packet
7       for mlx5 provider
8

SYNOPSIS

10              #include <infiniband/mlx5dv.h>
11
12              struct ibv_flow_action *
13              mlx5dv_create_flow_action_packet_reformat(struct ibv_context *ctx,
14                                    size_t data_sz,
15                                    void *data,
16                                    enum mlx5dv_flow_action_packet_reformat_type reformat_type,
17                                    enum mlx5dv_flow_table_type ft_type)
18

DESCRIPTION

20       Create a packet reformat flow steering action.  It allows adding/remov‐
21       ing packet headers.
22

ARGUMENTS

24       ctx
25
26              RDMA device context to create the action on.
27
28       data_sz
29
30              The size of *data* buffer.
31
32       data
33
34              A buffer which contains headers in case the actions requires them.
35
36       reformat_type
37
38              The reformat type to be create. Use enum mlx5dv_flow_action_packet_reformat_type.
39
40              MLX5DV_FLOW_ACTION_PACKET_REFORMAT_TYPE_L2_TUNNEL_TO_L2: Decap a
41              generic L2 tunneled packet up to inner L2.
42
43              MLX5DV_FLOW_ACTION_PACKET_REFORMAT_TYPE_L2_TO_L2_TUNNEL: Generic
44              encap, data should contain the encapsulating headers.
45
46              MLX5DV_FLOW_ACTION_PACKET_REFORMAT_TYPE_L3_TUNNEL_TO_L2: Will do
47              decap where the inner packet starts from L3.  data should be MAC
48              or  MAC + vlan (14 or 18 bytes) to be appended to the packet af‐
49              ter the decap action.
50
51              MLX5DV_FLOW_ACTION_PACKET_REFORMAT_TYPE_L2_TO_L3_TUNNEL: Will do
52              encap  where  is L2 of the original packet will not be included.
53              data should be the encapsulating header.
54
55       ft_type
56
57              It defines the flow table type to which the packet reformat action
58              will be attached.
59

RETURN VALUE

61       Upon success mlx5dv_create_flow_action_packet_reformat  will  return  a
62       new  struct  ibv_flow_action object, on error NULL will be returned and
63       errno will be set.
64

SEE ALSO

66       ibv_create_flow(3), ibv_create_flow_action(3)
67
68
69
70                                  mlx5dv_create_flow_action_packet_reformat(3)
Impressum