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 3CB062B9D for ; Mon, 29 Aug 2016 16:52:34 +0200 (CEST) Received: from lfbn-1-8252-96.w81-254.abo.wanadoo.fr ([81.254.151.96] helo=[192.168.1.13]) by mail.droids-corp.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1beNy5-0002Y1-Kb; Mon, 29 Aug 2016 16:55:22 +0200 To: "Ananyev, Konstantin" , "dev@dpdk.org" , "yuanhan.liu@linux.intel.com" References: <1469088510-7552-1-git-send-email-olivier.matz@6wind.com> <1469088510-7552-5-git-send-email-olivier.matz@6wind.com> <2601191342CEEE43887BDE71AB97725836B804B3@irsmsx105.ger.corp.intel.com> <20c9df39-1db8-95fb-8f32-5c8bb7257ba5@6wind.com> Cc: "Chandran, Sugesh" , "Richardson, Bruce" , "Tan, Jianfeng" , "adrien.mazarguil@6wind.com" , "dprovan@bivio.net" From: Olivier Matz Message-ID: <03a833a9-26f9-7793-be5a-c911a87f65cd@6wind.com> Date: Mon, 29 Aug 2016 16:52:22 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.1.0 MIME-Version: 1.0 In-Reply-To: <20c9df39-1db8-95fb-8f32-5c8bb7257ba5@6wind.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH 04/12] mbuf: add function to calculate a checksum X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2016 14:52:34 -0000 Hi guys, On 07/22/2016 10:24 AM, Olivier Matz wrote: >>> diff --git a/lib/librte_mbuf/rte_mbuf.c b/lib/librte_mbuf/rte_mbuf.c index 56f37e6..0304245 100644 >>> --- a/lib/librte_mbuf/rte_mbuf.c >>> +++ b/lib/librte_mbuf/rte_mbuf.c >>> @@ -60,6 +60,7 @@ >>> #include >>> #include >>> #include >>> +#include >> >> As a nit, do we need to introduce a dependency for librte_mbuf on librte_net? >> Might be better to put this functionality into librte_net? > > I tried to have this code in librte_net, also when working on the > software packet type parser, and it did not really convince me, mainly > because librte_net is just header files as of today (it's not a real > library). But I can give it a try and post a patch so we can compare, > probably not in the coming days, but I keep a note on it. Back on this. I've just submitted a v2 for the software packet type patchset: http://dpdk.org/ml/archives/dev/2016-August/045876.html As promised, I did the exercice of moving the the software packet type parser in librte_net. I did it on the sw ptype patchset, but it would be almost the same for the mbuf checksum function calculation of this patchset. The most notable differences between v1 and v2 are: v1: - rte_pktmbuf_get_ptype() is in librte_mbuf - only headers in librte_net - librte_mbuf depends on headers in librte_net v2: - rte_net_get_ptype() is in librte_net - librte_net is now a real library (.so or .a) - librte_net depends on librte_mbuf Please, let me know if you have any comment. Depending on them, I'll adapt the v2 of this patchset too. Olivier