net/iavf: fix VLAN tag extraction handling
authorHaiyue Wang <haiyue.wang@intel.com>
Tue, 23 Feb 2021 03:10:58 +0000 (11:10 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Tue, 23 Feb 2021 12:06:39 +0000 (13:06 +0100)
commit3a1aca384d3ac628dec8830714826e323f509dec
tree83506d829ade2f8a3f8d4429ee4b8b8171ffa7c9
parentaa1c17f1d8202a1a6e64e813103cdbe6b357b0ba
net/iavf: fix VLAN tag extraction handling

The new VIRTCHNL_VF_OFFLOAD_VLAN_V2 capability added support that allows
the PF to set the location of the RX VLAN tag for stripping offloads.

So the VF needs to extract the VLAN tag according to the location flags.

Fixes: 1c301e8c3cff ("net/iavf: support new VLAN capabilities")
Cc: stable@dpdk.org
Signed-off-by: Haiyue Wang <haiyue.wang@intel.com>
Signed-off-by: Leyi Rong <leyi.rong@intel.com>
Tested-by: Wei Xie <weix.xie@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/iavf/iavf_rxtx.c
drivers/net/iavf/iavf_rxtx.h
drivers/net/iavf/iavf_rxtx_vec_avx2.c