On Mon, 14 Sep 2026 03:36:55 +0400
Ivan Malov <[email protected]> wrote:
> When a tag is discovered, the code does not remove 'RTE_PTYPE_L2_ETHER'
> set on function entry. For single-tagged packets, 'RTE_PTYPE_L2_ETHER'
> and 'RTE_PTYPE_L2_ETHER_VLAN' give 'RTE_PTYPE_L2_ETHER_QINQ' when
> OR-ed together. Clear previously set L2 type when handling VLANs.
>
> Also, since 'RTE_PTYPE_L2_ETHER_VLAN' requires that the EtherType field
> in the Ethernet header be set to 0x8100 and 'RTE_PTYPE_L2_ETHER_QINQ'
> requires that it be set to 0x88a8, it is the outermost (first) tag
> that determines what the software L2 ptype should be. Clarify that.
>
> Fixes: 1f250674085a ("net: fix packet type for stacked VLAN")
> Cc: [email protected]
>
> Signed-off-by: Ivan Malov <[email protected]>
> ---
Applied to next-net