net/iavf: fix VLAN insert
authorXiaoyun Li <xiaoyun.li@intel.com>
Thu, 4 Feb 2021 03:11:18 +0000 (11:11 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 4 Feb 2021 17:19:36 +0000 (18:19 +0100)
commit3aa9573385030f943b58ede9a760f177964a3669
tree0d8b2e31f049f128af62a0a96ded7797e8b8aaa1
parentec732d933d05a4cb91c71ee318350b18aef427d5
net/iavf: fix VLAN insert

The new VIRTCHNL_VF_OFFLOAD_VLAN_V2 capability allows PF to set the
location of TX VLAN insertion.

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

Fixes: 1c301e8c3cff ("net/iavf: support new VLAN capabilities")

Signed-off-by: Xiaoyun Li <xiaoyun.li@intel.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
drivers/net/iavf/iavf_rxtx.c
drivers/net/iavf/iavf_rxtx.h