[dpdk-dev] PKT_RX_VLAN_PKT when VLAN stripping is disabled
Ananyev, Konstantin
konstantin.ananyev at intel.com
Mon Apr 25 14:02:11 CEST 2016
Hi John,
>From rte_mbuf.h:
#define PKT_RX_VLAN_PKT (1ULL << 0) /**< RX packet is a 802.1q VLAN packet. */
So yes, in theory it should be set up for vlan packet with both stripping on/off.
The problem is that (as far as I know) when VLAN stripping is disabled FVL RXD doesn't contain information
does that packet contain a VLAN or not.
Don't really know what is the best option in that case: keep things as it is or change the meaning of
the VLAN_PKT flag to indicate is mbuf.vlan_tci field is valid or not.
Konstantin
> -----Original Message-----
> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of John Daley (johndale)
> Sent: Friday, April 22, 2016 12:37 AM
> To: dev at dpdk.org
> Subject: [dpdk-dev] PKT_RX_VLAN_PKT when VLAN stripping is disabled
>
> Hi,
>
> When VLAN stripping is disabled, X710 and 82599ES act differently for me in this case when receiving VLAN tagged packets. On
> 82599ES the flag is set but on X710 the flag not set.
>
> Do I maybe have old X710 firmware? Or is it not set for X710 on purpose in this case and instead the flag is used to indicate if vlan_tci is
> valid? Right now the enic pmd does what my X710 does, which I think is incorrect and I want to fix it.
>
> Thanks,
> John
More information about the dev
mailing list