From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v13 6/7] vmxnet3: add Tx preparation Date: Thu, 22 Dec 2016 14:10:26 +0100 Message-ID: <3100044.IZmX6DqlTf@xps13> References: <1479922585-8640-1-git-send-email-tomaszx.kulasek@intel.com> <1481650914-40324-7-git-send-email-tomaszx.kulasek@intel.com> <3c86020d-b81f-bbe0-4cfc-746f7714af01@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Tomasz Kulasek , "Ananyev, Konstantin" To: Ferruh Yigit Return-path: Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by dpdk.org (Postfix) with ESMTP id 134AA10D69 for ; Thu, 22 Dec 2016 14:10:28 +0100 (CET) Received: by mail-wm0-f49.google.com with SMTP id g23so175348290wme.1 for ; Thu, 22 Dec 2016 05:10:28 -0800 (PST) In-Reply-To: <3c86020d-b81f-bbe0-4cfc-746f7714af01@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-12-20 13:36, Ferruh Yigit: > On 12/13/2016 5:41 PM, Tomasz Kulasek wrote: > > From: "Ananyev, Konstantin" > > > > Signed-off-by: Konstantin Ananyev > > --- > > <...> > > > > > uint16_t > > +vmxnet3_prep_pkts(__rte_unused void *tx_queue, struct rte_mbuf **tx_pkts, > > + uint16_t nb_pkts) > > +{ > <...> > > + > > +#ifdef RTE_LIBRTE_ETHDEV_DEBUG > > + ret = rte_validate_tx_offload(m); > > + if (ret != 0) { > > + rte_errno = ret; > > + return i; > > + } > > +#endif > > + ret = rte_net_intel_cksum_prepare(m); > > Since this API used beyond Intel drivers, what do you think renaming it? > rte_net_generic_cksum_prepare() ? I think it is good to have Intel in its name because it is where it comes from. Hopefully we won't have to care about this specific API when tx_prepare will be well accepted.