net/ice/base: add ethertype IPv6 check for dummy packet
authorQi Zhang <qi.z.zhang@intel.com>
Tue, 10 Aug 2021 02:51:15 +0000 (10:51 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Wed, 11 Aug 2021 02:23:23 +0000 (04:23 +0200)
commite0f9aa39fb5097c54083e8a6a8c545a87525fae1
tree31e2bbc3d7b3ae4259256fcd577a15eb72b4f642
parent97f4f78bbd9ff5c058372addcfb72d5ddc0a1adf
net/ice/base: add ethertype IPv6 check for dummy packet

In order to support switch rule for ethertype filter
with ipv6 ethertype id, it has to check ethertype and
then find a proper dummy packet. There was a silent
assumption that packet is ipv4, unless src or dst ipv6
address is specified in a flow.

Signed-off-by: Grzegorz Nitka <grzegorz.nitka@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Junfeng Guo <junfeng.guo@intel.com>
drivers/net/ice/base/ice_switch.c