From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH 4/6] ethdev: introduce TX common tunnel offloads Date: Thu, 11 Jan 2018 18:38:43 +0000 Message-ID: <340dbda2-e6a0-bd9c-3685-290d6554f06f@intel.com> References: <20180109141110.146250-1-xuemingl@mellanox.com> <20180109141110.146250-5-xuemingl@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Shahaf Shuler , dev@dpdk.org To: Xueming Li , Olivier MATZ , Thomas Monjalon , Jingjing Wu , Yongseok Koh Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id E08578E01 for ; Thu, 11 Jan 2018 19:38:47 +0100 (CET) In-Reply-To: <20180109141110.146250-5-xuemingl@mellanox.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 1/9/2018 2:11 PM, Xueming Li wrote: > This patch introduce new DEV_TX_OFFLOAD_GENERIC_TNL_CKSUM_TSO flag for > devices that support tunnel agnostic TX checksum and tso offloading. > > Checksum offset and TSO header length are calculated based on mbuf > inner length l*_len, outer_l*_len and tx offload flags PKT_TX_*, tunnel > header length is part of inner l2_len, so device HW do cheksum and TSO > calculation w/o knowledge of perticular tunnel type. > > When set application must guarantee that correct header types and > lengths for each inner and outer headers in mbuf header, no need to > specify tunnel type. > > Signed-off-by: Xueming Li Acked-by: Ferruh Yigit