From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v5 1/6] ethdev: add Tx preparation Date: Fri, 14 Oct 2016 07:20:00 -0700 (PDT) Message-ID: <3567043.JXAYMJHPG7@xps13> References: <20160930090039.10164-1-tomaszx.kulasek@intel.com> <8024593.WaNfoiub2G@xps13> <3042915272161B4EB253DA4D77EB373A14F35FFC@IRSMSX102.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, "Ananyev, Konstantin" , olivier.matz@6wind.com To: "Kulasek, TomaszX" Return-path: Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by dpdk.org (Postfix) with ESMTP id B637858D8 for ; Fri, 14 Oct 2016 16:20:01 +0200 (CEST) Received: by mail-wm0-f47.google.com with SMTP id c78so560071wme.0 for ; Fri, 14 Oct 2016 07:20:01 -0700 (PDT) In-Reply-To: <3042915272161B4EB253DA4D77EB373A14F35FFC@IRSMSX102.ger.corp.intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-10-14 14:02, Kulasek, TomaszX: > From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] > > 2016-10-13 19:36, Tomasz Kulasek: > > > +/** > > > + * Fix pseudo header checksum for TSO and non-TSO tcp/udp packets > > before > > > + * hardware tx checksum. > > > + * For non-TSO tcp/udp packets full pseudo-header checksum is counted > > and set. > > > + * For TSO the IP payload length is not included. > > > + */ > > > +static inline int > > > +rte_phdr_cksum_fix(struct rte_mbuf *m) > > > > You probably don't need this function since the recent improvements from > > Olivier. > > Do you mean this improvement: "net: add function to calculate a checksum in a mbuf" > http://dpdk.org/dev/patchwork/patch/16542/ > > I see only full raw checksum computation on mbuf in Olivier patches, while this function counts only pseudo-header checksum to be used with tx offload. OK. Please check what exists already in librte_net (especially rte_ip.h) and try to re-use code if possible. Thanks