---
name: "rte_flow_action_raw_encap"
section: "3"
platform: "linux"
package: "dpdk-doc"
version: "24.11.4-0+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rte_flow_action_raw_encap"
---

# rte\_flow\_action\_raw\_encap(3)

## NAME

rte\_flow\_action\_raw\_encap

## SYNOPSIS

`#include <rte_flow.h>`

### Data Fields

uint8\_t \* **data**\
 uint8\_t \* **preserve**\
 size\_t **size**\

## Detailed Description

**Warning**

**EXPERIMENTAL:** this structure may change without prior notice

RTE\_FLOW\_ACTION\_TYPE\_RAW\_ENCAP

Raw tunnel end-point encapsulation data definition.

The data holds the headers definitions to be applied on the packet. The data must start with ETH header up to the tunnel item header itself. When used right after RAW\_DECAP (for decapsulating L3 tunnel type for example MPLSoGRE) the data will just hold layer 2 header.

The preserve parameter holds which bits in the packet the PMD is not allowed to change, this parameter can also be NULL and then the PMD is allowed to update any field.

size holds the number of bytes in `data` and `preserve`.

Definition at line **3760** of file **rte\_flow.h**.

## Field Documentation

### uint8\_t\* data

Encapsulation data.

Definition at line **3761** of file **rte\_flow.h**.

### uint8\_t\* preserve

Bit-mask of `data` to preserve on output.

Definition at line **3762** of file **rte\_flow.h**.

### size\_t size

Size of `data` and `preserve`.

Definition at line **3763** of file **rte\_flow.h**.

## Author

Generated automatically by Doxygen for DPDK from the source code.
