net/ice/base: add check to IPv4 next protocol
authorQi Zhang <qi.z.zhang@intel.com>
Mon, 23 Mar 2020 07:17:57 +0000 (15:17 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:05 +0000 (13:57 +0200)
commit47fb3f91d8ff777ff9e9cb0cfa452364f2de0df3
treee0c68ad02683d903781435614f1e5dcb83d39008
parent72839bbc80bb38cb9f2e69488d441ed431011a65
net/ice/base: add check to IPv4 next protocol

In order to support switch rule for NVGRE packets,
it need to check ipv4 next protocol number, if it is 0x2F,
which means next payload is NVGRE, we need to use NVGRE
format dummy packet.

Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
drivers/net/ice/base/ice_switch.c