rte_flow_item_eth(3)
π NAME π
Okay bestie, this is the manual page for rte_flow_item_eth(3) β from the Library Functions Manual, no less. It's all about the Ethernet item for RTE flow, and we're gonna get into it. π
β¨ SYNOPSIS β¨
First things first, include the flow header:
#include <rte_flow.h>
π Data Fields π
uint32_t has_vlan:1uint32_t reserved:31
π Detailed Description π
RTE_FLOW_ITEM_TYPE_ETH
This item matches an Ethernet header. Periodt.
Inside the hdr field, the sub-field ether_type is giving either EtherType or TPID β it depends on whether the item is followed by a VLAN item or not. If two VLAN items follow, that sub-field refers to the outer one, and the outer one contains the inner TPID in the similar header field. The innermost VLAN item contains a layer-3 EtherType. The whole thing follows the order you see on the wire, no cap.
If the field in question contains a TPID value, only tagged packets with that specified TPID will match the pattern. Alternatively, you can match any type of tagged packets using the has_vlan field instead of the EtherType/TPID field. Also, you can leave the two fields unused. If that's the case, both tagged and untagged packets will match the pattern. Slay.
Definition at line 886 of file rte_flow.h.
πΈ Field Documentation πΈ
π¦ struct rte_ether_addr dst
Destination MAC.
Definition at line 893 of file rte_flow.h.
π¦ struct rte_ether_addr src
Source MAC.
Definition at line 894 of file rte_flow.h.
π¦ rte_be16_t type
EtherType or TPID.
Definition at line 895 of file rte_flow.h.
π¦ uint32_t has_vlan
Packet header contains at least one VLAN.
Definition at line 899 of file rte_flow.h.
π¦ uint32_t reserved
Reserved, must be zero.
Definition at line 900 of file rte_flow.h.
π Author π
Generated automatically by Doxygen for DPDK from the source code.
Source/version tea: DPDK, Version 26.03.0. Date on the footer? Not listed, bestie β the page keeps that mystery alive. π β¨
π¦ 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