ice: Add support for ip TTL & ToS offload
authorMarcin Szycik <marcin.szycik@linux.intel.com>
Fri, 29 Jul 2022 11:03:37 +0000 (13:03 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 24 Aug 2022 15:45:53 +0000 (08:45 -0700)
commit4c99bc96e05012008cc0069eb6f5f915db530158
tree7c623fa874157c1fce13dd47d90ec3f18fec9b33
parent8357d67f5ec0a5d9e48a2e95c66f1afb2c75879f
ice: Add support for ip TTL & ToS offload

Add support for parsing TTL and ToS (Hop Limit and Traffic Class) tc fields
and matching on those fields in filters. Incomplete part of implementation
was already in place (getting enc_ip and enc_tos from flow_match_ip and
writing them to filter header).

Note: matching on ipv6 ip_ttl, enc_ttl and enc_tos is currently not
supported by the DDP package.

Signed-off-by: Marcin Szycik <marcin.szycik@linux.intel.com>
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.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_tc_lib.c
drivers/net/ethernet/intel/ice/ice_tc_lib.h