From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id A0D54FB84 for ; Tue, 20 Dec 2016 14:36:30 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga104.fm.intel.com with ESMTP; 20 Dec 2016 05:36:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,378,1477983600"; d="scan'208";a="914395411" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.29]) ([10.237.220.29]) by orsmga003.jf.intel.com with ESMTP; 20 Dec 2016 05:36:28 -0800 To: Tomasz Kulasek , dev@dpdk.org References: <1479922585-8640-1-git-send-email-tomaszx.kulasek@intel.com> <1481650914-40324-1-git-send-email-tomaszx.kulasek@intel.com> <1481650914-40324-7-git-send-email-tomaszx.kulasek@intel.com> Cc: "Ananyev, Konstantin" From: Ferruh Yigit Message-ID: <3c86020d-b81f-bbe0-4cfc-746f7714af01@intel.com> Date: Tue, 20 Dec 2016 13:36:27 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <1481650914-40324-7-git-send-email-tomaszx.kulasek@intel.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v13 6/7] vmxnet3: add Tx preparation 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: Tue, 20 Dec 2016 13:36:31 -0000 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() ? > + if (ret != 0) { > + rte_errno = ret; > + return i; > + } > + } > + > + return i; > +} <...>