net/iavf: fix VLAN extraction in AVX512 path
authorLeyi Rong <leyi.rong@intel.com>
Thu, 22 Apr 2021 02:48:30 +0000 (10:48 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Fri, 30 Apr 2021 14:09:28 +0000 (16:09 +0200)
commit4b64ccb328c96ebe36b9508bb4f3f07cb1b4847c
treee553b441ec83dcc99455df4ca34b7866a65247b6
parentb7e8781de768adc13d5fee0cf13cbfaf2a18017b
net/iavf: fix VLAN extraction in AVX512 path

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.

This patch is the fix for AVX512 path, as AVX2 is already fixed.

Fixes: 9c9aa0040344 ("net/iavf: add offload path for Rx AVX512 flex descriptor")

Signed-off-by: Leyi Rong <leyi.rong@intel.com>
Tested-by: Qin Sun <qinx.sun@intel.com>
drivers/net/iavf/iavf_rxtx_vec_avx512.c