---
name: "rte_flow_item_raw"
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_raw"
---

# rte\_flow\_item\_raw(3)

## NAME

rte\_flow\_item\_raw

## SYNOPSIS

`#include <rte_flow.h>`

### Data Fields

uint32\_t **relative**:1\
 uint32\_t **search**:1\
 uint32\_t **reserved**:30\
 int32\_t **offset**\
 uint16\_t **limit**\
 uint16\_t **length**\
 const uint8\_t \* **pattern**\

## Detailed Description

RTE\_FLOW\_ITEM\_TYPE\_RAW

Matches a byte string of a given length at a given offset.

Offset is either absolute (using the start of the packet) or relative to the end of the previous matched item in the stack, in which case negative values are allowed.

If search is enabled, offset is used as the starting point. The search area can be delimited by setting limit to a nonzero value, which is the maximum number of bytes after offset where the pattern may start.

Matching a zero-length pattern is allowed, doing so resets the relative offset for subsequent items.

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

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

## Field Documentation

### uint32\_t relative

Look for pattern after the previous item.

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

### uint32\_t search

Search pattern from offset (see also limit).

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

### uint32\_t reserved

Reserved, must be set to zero.

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

### int32\_t offset

Absolute or relative offset for pattern.

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

### uint16\_t limit

Search area limit for start of pattern.

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

### uint16\_t length

Pattern length.

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

### const uint8\_t\* pattern

Byte string to look for.

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

## Author

Generated automatically by Doxygen for DPDK from the source code.
