[Intel-wired-lan] [PATCH net-next v3] ice: Add support for ip TTL & ToS offload

Buvaneswaran, Sujai sujai.buvaneswaran at intel.com
Fri Aug 19 10:52:57 UTC 2022


> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
> Marcin Szycik
> Sent: Friday, July 29, 2022 4:34 PM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH net-next v3] 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 at linux.intel.com>
> Reviewed-by: Michal Swiatkowski <michal.swiatkowski at linux.intel.com>
> ---
> v3: rebase (update ICE_TC_FLWR_FIELD_*)
> v2: wrap bitops conditions in brackets, use be32p_replace_bits to set
>     TC field in ipv6 header (thanks Alex!)
> 
>  drivers/net/ethernet/intel/ice/ice_tc_lib.c | 142 +++++++++++++++++++-
>  drivers/net/ethernet/intel/ice/ice_tc_lib.h |   6 +
>  2 files changed, 144 insertions(+), 4 deletions(-)
> 

Tested-by: Sujai Buvaneswaran <sujai.buvaneswaran at intel.com>


More information about the Intel-wired-lan mailing list