RTE_FLOW_ITEM_TYPE_ETH
Matches an Ethernet header.
Inside hdr field, the sub-field ether_type stands either for EtherType or TPID, depending on whether the
item is followed by a VLAN item or not. If two VLAN items follow, the sub-field refers to the outer one,
which, in turn, contains the inner TPID in the similar header field. The innermost VLAN item contains a
layer-3 EtherType. All of that follows the order seen on the wire.
If the field in question contains a TPID value, only tagged packets with the specified TPID will match
the pattern. Alternatively, it's possible to match any type of tagged packets by means of the field
has_vlan rather than use the EtherType/TPID field. Also, it's possible to leave the two fields unused. If
this is the case, both tagged and untagged packets will match the pattern.
Definition at line 886 of file rte_flow.h.