rte_flow_item_raw(3)
π rte_flow_item_raw π
okay bestie, welcome to the glow-up guide for rte_flow_item_raw π
this one lives in the Library Functions Manual, so it's the kind of thing you read when you're deep in the DPDK docs at 2am and you need to know exactly which bytes are gonna get matched. spoiler: it's giving "raw byte string matcher" and honestly? iconic.
β¨ SYNOPSIS β¨
#include <rte_flow.h>
π Data Fields π
uint32_t relative:1uint32_t search:1uint32_t reserved:30int32_t offsetuint16_t limituint16_t lengthconst uint8_t * pattern
πΈ Detailed Description πΈ
RTE_FLOW_ITEM_TYPE_RAW β say it with me π£
It matches a byte string of a given length at a given offset. literally just "here's some bytes, go find them".
The offset is either absolute (measured from the very start of the packet) or relative to the end of the previous matched item in the stack β and in that relative case, negative values are allowed. yes bestie, negative offsets, we love a flexible queen π«Ά
If search is enabled, offset becomes the starting point instead of the answer. 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. so like, "look around here, but don't wander off" π¦
Matching a zero-length pattern is allowed, and doing so resets the relative offset for subsequent items. sneaky useful, no cap.
β οΈ Heads up: this type does not support ranges (struct rte_flow_item.last). not a single one. don't ask, it said what it said π
Definition at line 846 of file rte_flow.h. π
π₯ Field Documentation π₯
uint32_t relative
Look for pattern after the previous item. (yes, this is the one that unlocks those negative offsets β¨)
Definition at line 847 of file rte_flow.h.
uint32_t search
Search pattern from offset (see also limit). offset = where you start looking, not necessarily where it lands π
Definition at line 848 of file rte_flow.h.
uint32_t reserved
Reserved, must be set to zero. bestie. zero. not "close enough to zero". ZERO. π«
Definition at line 849 of file rte_flow.h.
int32_t offset
Absolute or relative offset for pattern. your pick, main character energy either way π
Definition at line 850 of file rte_flow.h.
uint16_t limit
Search area limit for start of pattern. the perimeter fence of your little search party π
Definition at line 851 of file rte_flow.h.
uint16_t length
Pattern length. how many bytes we're matching, periodt. π
Definition at line 852 of file rte_flow.h.
const uint8_t* pattern
Byte string to look for. the actual bytes. the moment. the whole point π
Definition at line 853 of file rte_flow.h.
π Author π
Generated automatically by Doxygen for DPDK from the source code. no human hand-wrote this one, it just spawned like that π§
k bye love u, this page came straight from DPDK, Version 25.11.3, filed under rte_flow_item_raw(3) πβ¨ go match some bytes responsibly, bestie π
π¦ where this page comes from
- ubuntu resolute: dpdk-doc 25.11.3-0ubuntu0.26.04.1 Β· BSD-3-Clause
- ubuntu stonking: dpdk-doc 25.11.3-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms