logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Author

       Generated automatically by Doxygen for DPDK from the source code.

DPDK                                             Version 24.11.2                                rte_flow_item(3)

Detailed Description

       Matching pattern item definition.

       A pattern is formed by stacking items starting from the lowest protocol layer to match. This stacking
       restriction does not apply to meta items which can be placed anywhere in the stack without affecting the
       meaning of the resulting pattern.

       Patterns are terminated by END items.

       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.

       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, which 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.

       Definition at line 2127 of file rte_flow.h.

Field Documentation

enumrte_flow_item_typetype
       Item type.

       Definition at line 2128 of file rte_flow.h.

   constvoid*spec
       Pointer to item specification structure.

       Definition at line 2129 of file rte_flow.h.

   constvoid*last
       Defines an inclusive range (spec to last).

       Definition at line 2130 of file rte_flow.h.

   constvoid*mask
       Bit-mask applied to spec and last.

       Definition at line 2131 of file rte_flow.h.

Name

       rte_flow_item

Synopsis

       #include <rte_flow.h>

   DataFields
       enum rte_flow_item_typetype
       const void * spec
       const void * last
       const void * mask

See Also