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:1
  • uint32_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