net/ice: support src MAC filter for flow director
authorZhirun Yan <zhirun.yan@intel.com>
Wed, 8 Jul 2020 12:43:07 +0000 (12:43 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Sat, 11 Jul 2020 04:18:52 +0000 (06:18 +0200)
commitfb3ef40fc6096cee94e9c45d381f67143e2239a3
tree019242ea4c9167bbfb8b1a6c527c30e6275619e4
parent2d6255ff0a9eac88a41e331868af8913cb3b698f
net/ice: support src MAC filter for flow director

This patch enables FDIR with src mac filter and change the logic for
only supporting ether type field without IP pattern. Application may
set ether type with IP. It is redundant for flow, ignore ether type
except for ICE_FLTR_PTYPE_NON_IP_L2.

Also, remove redundant code for checking next_type.

Signed-off-by: Zhirun Yan <zhirun.yan@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/base/ice_fdir.c
drivers/net/ice/base/ice_fdir.h
drivers/net/ice/ice_fdir_filter.c