From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier Matz Subject: Re: [PATCH 04/12] mbuf: add function to calculate a checksum Date: Mon, 29 Aug 2016 16:52:22 +0200 Message-ID: <03a833a9-26f9-7793-be5a-c911a87f65cd@6wind.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> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: "Chandran, Sugesh" , "Richardson, Bruce" , "Tan, Jianfeng" , "adrien.mazarguil@6wind.com" , "dprovan@bivio.net" To: "Ananyev, Konstantin" , "dev@dpdk.org" , "yuanhan.liu@linux.intel.com" 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) In-Reply-To: <20c9df39-1db8-95fb-8f32-5c8bb7257ba5@6wind.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" 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