DPDK  19.11.14
Data Fields
rte_flow_item_raw Struct Reference

#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


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 663 of file rte_flow.h.

Field Documentation

◆ relative

uint32_t relative

Look for pattern after the previous item.

Definition at line 664 of file rte_flow.h.

◆ search

uint32_t search

Search pattern from offset (see also limit).

Definition at line 665 of file rte_flow.h.

◆ reserved

uint32_t reserved

Reserved, must be set to zero.

Definition at line 666 of file rte_flow.h.

◆ offset

int32_t offset

Absolute or relative offset for pattern.

Definition at line 667 of file rte_flow.h.

◆ limit

uint16_t limit

Search area limit for start of pattern.

Definition at line 668 of file rte_flow.h.

◆ length

uint16_t length

Pattern length.

Definition at line 669 of file rte_flow.h.

◆ pattern

const uint8_t* pattern

Byte string to look for.

Definition at line 670 of file rte_flow.h.

The documentation for this struct was generated from the following file: