net/ice/base: choose TCP dummy packet by protocol
authorQi Zhang <qi.z.zhang@intel.com>
Thu, 11 Jun 2020 08:43:28 +0000 (16:43 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 30 Jun 2020 12:52:29 +0000 (14:52 +0200)
commit1ffe6670e0e2777f56a297c61e9237f12e853b61
tree8a19a5cd05ff8b79915b48d839f84291a88e30ba
parent418d2563d10bb50b7db77c5e8bb9e37638c8aa9a
net/ice/base: choose TCP dummy packet by protocol

In order to find proper dummy packets for switch filter,
it need to check ipv4 next protocol number, if it is 0x06,
which means next payload is TCP, we need to use TCP
format dummy packet.

Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@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_switch.c