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 71C5E2BF2 for ; Mon, 23 Apr 2018 10:14:42 +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 1fAWcW-0002bL-0K; Mon, 23 Apr 2018 10:14:45 +0200 Received: by droids-corp.org (sSMTP sendmail emulation); Mon, 23 Apr 2018 10:14:36 +0200 Date: Mon, 23 Apr 2018 10:14:36 +0200 From: Olivier Matz To: Thomas Monjalon Cc: dev@dpdk.org, xuemingl@mellanox.com, tomaszx.kulasek@intel.com Message-ID: <20180423081436.vdqlibcrcbxwkxev@platinum> References: <20180420001324.11813-1-thomas@monjalon.net> <20180420001324.11813-2-thomas@monjalon.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180420001324.11813-2-thomas@monjalon.net> User-Agent: NeoMutt/20170113 (1.7.2) Subject: Re: [dpdk-dev] [PATCH 1/2] mbuf: fix Tx checksum offload API doc 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 08:14:42 -0000 On Fri, Apr 20, 2018 at 02:13:23AM +0200, Thomas Monjalon wrote: > When introducing rte_eth_tx_prepare(), the constraints on checksum > pre-filling for Tx offloads were relaxed because implemented in > the PMDs with rte_net_intel_cksum_flags_prepare() helper. > As a consequence, these old requirements are removed for: > - PKT_TX_OUTER_IP_CKSUM > - PKT_TX_IP_CKSUM > - PKT_TX_[L4]_CKSUM > - PKT_TX_TCP_SEG > > Not sure SCTP offload is properly implemented though. > > A reference to rte_eth_tx_prepare() is added in rte_eth_tx_burst() doc. > > Fixes: 4fb7e803eb1a ("ethdev: add Tx preparation") > Cc: tomaszx.kulasek@intel.com > > Signed-off-by: Thomas Monjalon Acked-by: Olivier Matz > @@ -288,10 +280,8 @@ extern "C" { > > /** > * Offload the IP checksum of an external header in the hardware. The > - * flag PKT_TX_OUTER_IPV4 should also be set by the application, alto ugh > - * a PMD will only check PKT_TX_IP_CKSUM. The IP checksum field in the > - * packet must be set to 0. > - * - set the outer IP checksum field in the packet to 0 > + * flag PKT_TX_OUTER_IPV4 should also be set by the application, altough > + * a PMD will only check PKT_TX_OUTER_IP_CKSUM. > * - fill the mbuf offload information: outer_l2_len, outer_l3_len > */ > #define PKT_TX_OUTER_IP_CKSUM (1ULL << 58) Nice catch (PKT_TX_IP_CKSUM -> PKT_TX_OUTER_IP_CKSUM). It could eventually deserve also a: Fixes: 609dd68ef14f ("mbuf: enhance the API documentation of offload flags") Thanks Olivier