net/ice: fix tunnel type get
authorWei Zhao <wei.zhao1@intel.com>
Thu, 16 Jul 2020 01:42:12 +0000 (09:42 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 17 Jul 2020 16:21:21 +0000 (18:21 +0200)
commit69d5406d60597de16be0c941b160f405ebb022af
treea0f098671f4738d0576fc840bead520319bd8bae
parent2d944002762e85e351be7cea432919f159d2ecae
net/ice: fix tunnel type get

When function ice_get_tun_type_for_recipe() get tunnel type,
for ICE_NON_TUN we need to include gtp-c and some gtp-u ptype
with no payload, as they do not have tunnel packet as paylod.

Fixes: 418d2563d10b ("net/ice/base: get tunnel type for recipe")

Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
Tested-by: Nannan Lu <nannan.lu@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/base/ice_switch.c
drivers/net/ice/base/ice_switch.h