rte_flow_item_vlan(3)
π NAME π
okay bestie, say hi to rte_flow_item_vlan β that's the whole name, that's it, that's the girl. she's a page straight out of the Library Functions Manual, so yes she's a section 3 situation, iykyk.
β¨ SYNOPSIS β¨
ok so before you can even look at her you gotta do the lil summoning ritual:
#include <rte_flow.h>
π Data Fields π
here's the roster, no notes:
uint32_t has_more_vlan:1uint32_t reserved:31
π¦ Detailed Description π¦
the item type in question is RTE_FLOW_ITEM_TYPE_VLAN, and what she does is match an 802.1Q/ad VLAN tag. literally her whole job. iconic.
the corresponding standard outer EtherType (TPID) values are RTE_ETHER_TYPE_VLAN or RTE_ETHER_TYPE_QINQ. she's flexible tho β it can be overridden by the preceding pattern item. π
and here's the part you actually need to memorize for the quiz: if a VLAN item is present in the pattern, then only tagged packets will match the pattern. periodt. but the field has_more_vlan can be used to match any type of tagged packets, instead of using the eth_proto field of hdr. and if the eth_proto of hdr and has_more_vlan fields are both not specified, then any tagged packets will match the pattern. slay.
oh and for the record, she's defined at line 927 of file rte_flow.h. π
πΈ Field Documentation πΈ
π rte_be16_t tci
Tag control information. that's the vibe. β¨
Definition at line 934 of file rte_flow.h.
π rte_be16_t inner_type
Inner EtherType or TPID. inner. inside. the little one. π«Ά
Definition at line 935 of file rte_flow.h.
π uint32_t has_more_vlan
packet header contains at least one more VLAN, after this VLAN. so there's more where that came from, bestie. π
Definition at line 940 of file rte_flow.h.
π uint32_t reserved
Reserved, must be zero. and I mean it β MUST be zero, do not get cute with this one.
bestie if you put anything other than zero in reserved you are on your own fr fr π
Definition at line 941 of file rte_flow.h.
π Author π
Generated automatically by Doxygen for DPDK from the source code. so like, nobody wrote this by hand, the machine did it, and honestly? she ate. π₯
k bye that's the whole page π this edition of rte_flow_item_vlan(3) is DPDK Version 25.11.3, brought to you by the very same Doxygen robot β mwah, go read some header files, ily πβπ
π¦ 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