net/i40e: fix VLAN offload setting issue
authorBeilei Xing <beilei.xing@intel.com>
Fri, 8 Dec 2017 07:40:33 +0000 (15:40 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commit54f19c9c3b251fd0e229c5a7ebb570eed5afe68c
tree63239638777d2b19ecaea6f08bf142f34249ba86
parenta634522fc7c8fcf6d7601814cc6eda43f7a753d4
net/i40e: fix VLAN offload setting issue

When using kernel PF + DPDK VF, if setting VLAN strip on
or off in VF side after setting PVID for VF with ethtool in
PF side, it will cause VF Tx error. The root cause is that
Rx VLAN offload is not permitted after setting PVID for VF
in kernel PF side.
This patch fixes the issue by check VLAN offload capability
when setting VLAN offload.

Fixes: 5f0b95d59a98 ("net/i40e: support VLAN stripping for VF")
Cc: stable@dpdk.org
Signed-off-by: Beilei Xing <beilei.xing@intel.com>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
drivers/net/i40e/i40e_ethdev_vf.c