From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.droids-corp.org (zoll.droids-corp.org [94.23.50.67]) by dpdk.org (Postfix) with ESMTP id 7C0191F1C for ; Mon, 23 Apr 2018 11:03:53 +0200 (CEST) Received: from alille-654-1-134-221.w90-34.abo.wanadoo.fr ([90.34.61.221] helo=droids-corp.org) by mail.droids-corp.org with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fAXOA-0002iC-ES; Mon, 23 Apr 2018 11:03:59 +0200 Received: by droids-corp.org (sSMTP sendmail emulation); Mon, 23 Apr 2018 11:03:48 +0200 Date: Mon, 23 Apr 2018 11:03:48 +0200 From: Olivier Matz To: Thomas Monjalon Cc: dev@dpdk.org, xuemingl@mellanox.com, harish.patil@cavium.com Message-ID: <20180423090348.kbryof7kpu6t4spy@platinum> References: <20180420001324.11813-1-thomas@monjalon.net> <20180420001324.11813-3-thomas@monjalon.net> <20180423081449.yxyc2cbuhfavfeor@platinum> <38112584.aOSrxqkTeH@xps> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <38112584.aOSrxqkTeH@xps> User-Agent: NeoMutt/20170113 (1.7.2) Subject: Re: [dpdk-dev] [PATCH 2/2] mbuf: improve API doc for tunnel Tx offloads X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Apr 2018 09:03:54 -0000 On Mon, Apr 23, 2018 at 10:53:17AM +0200, Thomas Monjalon wrote: > 23/04/2018 10:14, Olivier Matz: > > On Fri, Apr 20, 2018 at 02:13:24AM +0200, Thomas Monjalon wrote: > > > + * These flags can be used with PKT_TX_TCP_SEG for TSO, or PKT_TX_xxx_CKSUM. > > > + * The mbuf fields for inner and outer header lengths may be required: > > > > may be -> are > > > > > + * outer_l2_len, outer_l3_len, l2_len, l3_len, l4_len. > > > > and tso_segsz for TSO. > > From a HW point of view, some header lengths may be omitted if they are > guessed by the HW. > But you are right, from an API point of view, we should require them, > no matter what is the underlying hardware. > > So the sentence becomes: > * The mbuf fields for inner and outer header lengths are required: > * outer_l2_len, outer_l3_len, l2_len, l3_len, l4_len and tso_segsz for TSO. Sounds good, thanks.