net/ice: fix tunnel type for switch rule
authorWei Zhao <wei.zhao1@intel.com>
Fri, 3 Jul 2020 06:19:35 +0000 (14:19 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 7 Jul 2020 21:38:26 +0000 (23:38 +0200)
commitea1e91e962e3d3915a041a20df5d849e5ce140f3
tree868fd07f608ed8262b35719406838f0342349b6f
parente8c321e5ee61eac3911c322e96d2314882717ca4
net/ice: fix tunnel type for switch rule

This patch add check for protocol type of IPv4 packet,
it need to update tunnel type when NVGRE is in payload.

Fixes: 6bc7628c5e0b ("net/ice: change default tunnel type")
Cc: stable@dpdk.org
Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_switch_filter.c