---
name: "rte_table_action_encap_config"
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_table_action_encap_config"
---

# rte\_table\_action\_encap\_config(3)

## NAME

rte\_table\_action\_encap\_config

## SYNOPSIS

`#include <rte_table_action.h>`

### Data Fields

uint64\_t **encap\_mask**\
 union {\
    struct {\
       uint32\_t **data\_offset**\
       int **vlan**\
       int **ip\_version**\
    } **vxlan**\
 }; \

## Detailed Description

Encap action configuration (per table action profile).

Definition at line **500** of file **rte\_table\_action.h**.

## Field Documentation

### uint64\_t encap\_mask

Bit mask defining the set of packet encapsulations enabled for the current table action profile. If bit (1 \<\< N) is set in *encap\_mask*, then packet encapsulation N is enabled, otherwise it is disabled.

**See also**

enum **rte\_table\_action\_encap\_type**

Definition at line **507** of file **rte\_table\_action.h**.

### uint32\_t data\_offset

Input packet to be encapsulated: offset within the input packet buffer to the start of the Ethernet frame to be encapsulated. Offset 0 points to the first byte of the MBUF structure.

Definition at line **517** of file **rte\_table\_action.h**.

### int vlan

Encapsulation header: non-zero when encapsulation header includes a VLAN tag, zero otherwise.

Definition at line **522** of file **rte\_table\_action.h**.

### int ip\_version

Encapsulation header: IP version of the IP header within the encapsulation header. Non-zero for IPv4, zero for IPv6.

Definition at line **528** of file **rte\_table\_action.h**.

### struct { ... } vxlan

VXLAN specific configuration.

### union { ... }

Encapsulation type specific configuration.

## Author

Generated automatically by Doxygen for DPDK from the source code.
