ice: allow matching on meta data
authorMichal Swiatkowski <michal.swiatkowski@linux.intel.com>
Fri, 7 Apr 2023 16:52:18 +0000 (18:52 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 19 May 2023 16:09:52 +0000 (09:09 -0700)
commit03592a14b9383bbe1c0d56e7ac4005cea10e711a
treefc8033042f6b569f695c3ad5624384e6dfee4f00
parent17c6d8357da1ae6a5d92c15efe68f877c3e8b968
ice: allow matching on meta data

Add meta data matching criteria in the same place as protocol matching
criteria. There is no need to add meta data as special words after
parsing all lookups. Trade meta data in the same why as other lookups.

The one difference between meta data lookups and protocol lookups is
that meta data doesn't impact how the packets looks like. Because of that
ignore it when filling testing packet.

Match on tunnel type meta data always if tunnel type is different than
TNL_LAST.

Signed-off-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Reviewed-by: Piotr Raczynski <piotr.raczynski@intel.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Tested-by: Sujai Buvaneswaran <sujai.buvaneswaran@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_protocol_type.h
drivers/net/ethernet/intel/ice/ice_switch.c
drivers/net/ethernet/intel/ice/ice_switch.h
drivers/net/ethernet/intel/ice/ice_tc_lib.c
drivers/net/ethernet/intel/ice/ice_tc_lib.h