[dpdk-dev] [PATCH v2] net/ice: fix VLAN 0 adding based on VLAN mode
Zhang, Qi Z
qi.z.zhang at intel.com
Thu Feb 4 15:00:16 CET 2021
> -----Original Message-----
> From: Wang, Haiyue <haiyue.wang at intel.com>
> Sent: Thursday, February 4, 2021 8:50 PM
> To: dev at dpdk.org
> Cc: Yang, Qiming <qiming.yang at intel.com>; Zhang, Qi Z
> <qi.z.zhang at intel.com>; Wang, Haiyue <haiyue.wang at intel.com>; Creeley,
> Brett <brett.creeley at intel.com>
> Subject: [PATCH v2] net/ice: fix VLAN 0 adding based on VLAN mode
> In Single VLAN Mode, single VLAN filters via ICE_SW_LKUP_VLAN are based on
> the inner VLAN ID, so the VLAN TPID (i.e. 0x8100 or 0x888a8) doesn't matter.
> In Double VLAN Mode, outer/single VLAN filters via ICE_SW_LKUP_VLAN are
> based on the outer/single VLAN ID + VLAN TPID.
> For both modes, adding a VLAN 0 + no VLAN TPID filter to handle untagged
> traffic when VLAN pruning is enabled. Also, this handles VLAN 0 priority tagged
> traffic in Single VLAN Mode, since the VLAN TPID is not part of filtering.
> If Double VLAN Mode is enabled then an explicit VLAN 0 + VLAN TPID filter
> needs to be added to allow VLAN 0 priority tagged traffic in DVM, since the
> VLAN TPID is part of filtering.
> Fixes: 14e7a4b37b4f ("net/ice/base: support configuring device in double VLAN
> Signed-off-by: Haiyue Wang <haiyue.wang at intel.com>
Acked-by: Qi Zhang <qi.z.zhang at intel.com>
Applied to dpdk-next-net-intel.
More information about the dev