rte_flow_item_vlan(3)

πŸ“¦ version 26.03, in nixos 26.05, nixpkgs unstable

rte_flow_item_vlan(3) β€” the VLAN item that ate πŸ’…

okay so this page is from the Library Functions Manual, and the main character is rte_flow_item_vlan(3). It’s literally the flow item for matching an 802.1Q/ad VLAN tag, and lowkey, every detail is here.

🌸 NAME 🌸

rte_flow_item_vlan β€” that’s the name, slay. πŸ’–

πŸŽ€ SYNOPSIS πŸŽ€

#include <rte_flow.h>

✨ Data Fields ✨

  • uint32_t has_more_vlan:1
  • uint32_t reserved:31

πŸ’– Detailed Description πŸ’–

okay so RTE_FLOW_ITEM_TYPE_VLAN matches an 802.1Q/ad VLAN tag β€” it’s giving iconic tagged-packet realness. The corresponding standard outer EtherType (TPID) values are RTE_ETHER_TYPE_VLAN or RTE_ETHER_TYPE_QINQ. It can be overridden by the preceding pattern item. no cap.

If a VLAN item is present in the pattern, then only tagged packets will match the pattern. The field has_more_vlan can be used to match any type of tagged packets, instead of using the eth_proto field of hdr. If the eth_proto of hdr and has_more_vlan fields are not specified, then any tagged packets will match the pattern. fr fr, that’s the whole rule.

Definition at line 927 of file rte_flow.h. Yep, exact line, bestie.

πŸ¦‹ Field Documentation πŸ¦‹

rte_be16_t tci πŸŽ€

Tag control information.

Definition at line 934 of file rte_flow.h.

rte_be16_t inner_type πŸŽ€

Inner EtherType or TPID.

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.

Definition at line 940 of file rte_flow.h.

uint32_t reserved πŸŽ€

Reserved, must be zero.

bestie, reserved is reserved, must be zero β€” do not touch it, seriously. πŸ™ˆ

Definition at line 941 of file rte_flow.h.

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for DPDK from the source code.


Sign-off from the footer: DPDK, Version 26.03.0 β€” that’s the source/version moment, and we’re out. πŸ’–πŸ’…

πŸ“¦ where this page comes from