net/ice: fix VLAN strip for double VLAN
authorHaiyue Wang <haiyue.wang@intel.com>
Thu, 4 Feb 2021 02:03:33 +0000 (10:03 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 4 Feb 2021 17:19:36 +0000 (18:19 +0100)
commit8ac4307504bed19ce68b39bc2703975ee0b9ab81
tree0e9583a0036005f672617f5b4f1375809a380019
parentaa0d4b8a0186060d452d37f715236b4b31fd3752
net/ice: fix VLAN strip for double VLAN

VLAN strip was failing for double VLAN because of hardware
configuration, resulting mbuf not having the vlan_tci information.

Adjusted the strip setting according to current VLAN mode to fix the
VLAN strip.

Fixes: 14e7a4b37b4f ("net/ice/base: support configuring device in double VLAN mode")

Signed-off-by: Haiyue Wang <haiyue.wang@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
drivers/net/ice/ice_ethdev.c