---
name: "rte_flow_item_flex_conf"
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_item_flex_conf"
---

# rte\_flow\_item\_flex\_conf(3)

## NAME

rte\_flow\_item\_flex\_conf

## SYNOPSIS

`#include <rte_flow.h>`

### Data Fields

enum **rte\_flow\_item\_flex\_tunnel\_mode** **tunnel**\
 struct **rte\_flow\_item\_flex\_field** **next\_header**\
 struct **rte\_flow\_item\_flex\_field** **next\_protocol**\
 struct **rte\_flow\_item\_flex\_field** \* **sample\_data**\
 uint32\_t **nb\_samples**\
 struct **rte\_flow\_item\_flex\_link** \* **input\_link**\
 uint32\_t **nb\_inputs**\
 struct **rte\_flow\_item\_flex\_link** \* **output\_link**\
 uint32\_t **nb\_outputs**\

## Detailed Description

**Warning**

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

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

## Field Documentation

### enum rte\_flow\_item\_flex\_tunnel\_mode tunnel

Specifies the flex item and tunnel relations and tells the PMD whether flex item can be used for inner, outer or both headers, or whether flex item presents the tunnel protocol itself.

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

### struct rte\_flow\_item\_flex\_field next\_header

The next header offset, it presents the network header size covered by the flex item and can be obtained with all supported offset calculating methods (fixed, dedicated field, bitmask, etc).

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

### struct rte\_flow\_item\_flex\_field next\_protocol

Specifies the next protocol field to match with link next protocol values and continue packet parsing with matching link.

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

### struct rte\_flow\_item\_flex\_field\* sample\_data

The fields will be sampled and presented for explicit match with pattern in the rte\_flow\_flex\_item. There can be multiple fields descriptors, the number should be specified by nb\_samples.

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

### uint32\_t nb\_samples

Number of field descriptors in the sample\_data array.

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

### struct rte\_flow\_item\_flex\_link\* input\_link

Input link defines the flex item relation with preceding header. It specified the preceding item type and provides pattern to match. The flex item will continue parsing and will provide the data to flow match in case if there is the match with one of input links.

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

### uint32\_t nb\_inputs

Number of link descriptors in the input link array.

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

### struct rte\_flow\_item\_flex\_link\* output\_link

Output link defines the next protocol field value to match and the following protocol header to continue packet parsing. Also defines the tunnel-related behaviour.

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

### uint32\_t nb\_outputs

Number of link descriptors in the output link array.

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

## Author

Generated automatically by Doxygen for DPDK from the source code.
