---
name: "rte_flow_item_flex"
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"
---

# rte\_flow\_item\_flex(3)

## NAME

rte\_flow\_item\_flex

## SYNOPSIS

`#include <rte_flow.h>`

### Data Fields

struct rte\_flow\_item\_flex\_handle \* **handle**\
 uint32\_t **length**\
 const uint8\_t \* **pattern**\

## Detailed Description

**Warning**

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

RTE\_FLOW\_ITEM\_TYPE\_FLEX

Matches a specified set of fields within the network protocol header. Each field is presented as set of bits with specified width, and bit offset from the header beginning.

The pattern is concatenation of bit fields configured at item creation by **rte\_flow\_flex\_item\_create()**. At configuration the fields are presented by sample\_data array.

This type does not support ranges (struct **rte\_flow\_item.last**).

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

## Field Documentation

### struct rte\_flow\_item\_flex\_handle\* handle

Opaque item handle.

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

### uint32\_t length

Pattern length in bytes.

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

### const uint8\_t\* pattern

Combined bitfields pattern to match.

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

## Author

Generated automatically by Doxygen for DPDK from the source code.
