Ethtool allows creating rules with type=ether, add support for such filters in ice driver. Patch 1 allows extending ice_fdir_comp_rules() with handling additional type of filters.
v6: removed ice_fdir_eth and reused ethhdr, removed 0 initialization of static const array v5: added missing documentation for parameter introduced in V4, extended commit message for patch adding flow-type ether rules support v4: added warning explaining that masks other than broadcast and unicast are not supported, added check for empty filters v3: fixed possible use of uninitialized variable "perfect_filter" v2: fixed compilation warning by moving default: case between commits Jakub Buchocki (1): ice: Implement 'flow-type ether' rules Lukasz Plachno (1): ice: Remove unnecessary argument from ice_fdir_comp_rules() .../net/ethernet/intel/ice/ice_ethtool_fdir.c | 130 +++++++++++++++++- drivers/net/ethernet/intel/ice/ice_fdir.c | 112 ++++++++------- drivers/net/ethernet/intel/ice/ice_fdir.h | 5 + drivers/net/ethernet/intel/ice/ice_type.h | 1 + 4 files changed, 201 insertions(+), 47 deletions(-) -- 2.34.1