net/ice/base: change protocol ID for VLAN in DVM
authorQi Zhang <qi.z.zhang@intel.com>
Tue, 13 Apr 2021 05:06:32 +0000 (13:06 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Tue, 13 Apr 2021 14:25:26 +0000 (16:25 +0200)
commit8d7bb8d500b1ccdeb30668516064337faa20b364
treee947bf02423336887b9b8d36963bfc6ba25c69b2
parentd42a7fef2015cf7f2e439d141189c74d804eee94
net/ice/base: change protocol ID for VLAN in DVM

Protocol id for first vlan in Double VLAN Mode (DVM) should be
ICE_VLAN_OF_HW = 16, but for Single VLAN Mode (SVM) this should be
ICE_VLAN_OL_HW = 17.

Change protocol id in type to id translation array for outer vlan
to 17 when DVM is enabled, which means the driver, package,
and firmware support DVM.

Signed-off-by: Michal Swiatkowski <michal.swiatkowski@intel.com>
Signed-off-by: Haiyue Wang <haiyue.wang@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
drivers/net/ice/base/ice_flex_pipe.c
drivers/net/ice/base/ice_switch.c
drivers/net/ice/base/ice_switch.h