[PATCH 1/1] net: fix L2 ptype for VLAN-tagged packets

Stephen Hemminger stephen at networkplumber.org
Mon Sep 14 19:00:08 CEST 2026


On Mon, 14 Sep 2026 03:36:55 +0400
Ivan Malov <ivan.malov at arknetworks.am> 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: stable at dpdk.org
> 
> Signed-off-by: Ivan Malov <ivan.malov at arknetworks.am>
> ---

Applied to next-net


More information about the stable mailing list