DPDK  21.05.0-rc3
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

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

Field Documentation

◆ relative

uint32_t relative

Look for pattern after the previous item.

Definition at line 727 of file rte_flow.h.

◆ search

uint32_t search

Search pattern from offset (see also limit).

Definition at line 728 of file rte_flow.h.

◆ reserved

uint32_t reserved

Reserved, must be set to zero.

Definition at line 729 of file rte_flow.h.

◆ offset

int32_t offset

Absolute or relative offset for pattern.

Definition at line 730 of file rte_flow.h.

◆ limit

uint16_t limit

Search area limit for start of pattern.

Definition at line 731 of file rte_flow.h.

◆ length

uint16_t length

Pattern length.

Definition at line 732 of file rte_flow.h.

◆ pattern

const uint8_t* pattern

Byte string to look for.

Definition at line 733 of file rte_flow.h.


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