rte_flow_item(3)
π NAME π
rte_flow_item
Bestie, you're on the rte_flow_item(3) page from the Library Functions Manual β let's go π
β¨ SYNOPSIS β¨
#include <rte_flow.h>
π§Έ Data Fields π§Έ
enum rte_flow_item_type typeβ item type, iykyk πconst void * specβ pointer tospecitem specification structure β¨const void * lastβ defines an inclusive range (spectolast) πΈconst void * maskβ bit-mask applied tospecandlastπ
π¦ Detailed Description π¦
Okay so a matching pattern item definition is the whole vibe here. A pattern is formed by stacking items starting from the lowest protocol layer to match. That stacking restriction does not apply to meta items, which can have main character energy and be placed anywhere in the stack without affecting the meaning of the resulting pattern β slay, periodt β¨
Patterns are terminated by END items β iconic, necessary, no cap.
The spec field should be a valid pointer to a structure of the related item type. It may remain unspecified (NULL) in many cases to request broad (nonspecific) matching. In such cases, last and mask must also be set to NULL, fr fr π«Ά
Optionally, last can point to a structure of the same type to define an inclusive range. This is mostly supported by integer and address fields, may cause errors otherwise. Fields that do not support ranges must be set to 0 or to the same value as the corresponding fields in spec π
Only the fields defined to nonzero values in the default masks (see rte_flow_item_{name}_mask constants) are considered relevant by default. This can be overridden by providing a mask structure of the same type with applicable bits set to one. It can also be used to partially filter out specific fields (e.g. as an alternate mean to match ranges of IP addresses) π
mask is a simple bit-mask applied before interpreting the contents of spec and last; highkey, this may yield unexpected results if not used carefully. For example, if for an IPv4 address field, spec provides 10.1.2.3, last provides 10.3.4.5 and mask provides 255.255.0.0, the effective range becomes 10.1.0.0 to 10.3.255.255. Not me making a mask mistake and getting a whole unexpected range π
Definition at line 2127 of file rte_flow.h.
π«Ά Field Documentation π«Ά
πΈ enum rte_flow_item_type type πΈ
Item type. Definition at line 2128 of file rte_flow.h.
β¨ const void* spec β¨
Pointer to item specification structure. Definition at line 2129 of file rte_flow.h.
π const void* last π
Defines an inclusive range (spec to last). Definition at line 2130 of file rte_flow.h.
π
const void* mask π
Bit-mask applied to spec and last. Definition at line 2131 of file rte_flow.h.
π Author π
Generated automatically by Doxygen for DPDK from the source code.
that's the whole page, bestie π source/version: DPDK, Version 26.03.0; date: not listed in this footer, so no invented date π β mwah π«Άβ¨
π¦ where this page comes from
- nixos 26.05: dpdk 26.03
- nixpkgs unstable: dpdk 26.03
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms