From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.tuxdriver.com (charlotte.tuxdriver.com [70.61.120.58]) by dpdk.org (Postfix) with ESMTP id B7E7C5A01 for ; Mon, 29 Dec 2014 13:47:35 +0100 (CET) Received: from [2001:470:8:a08:215:ff:fecc:4872] (helo=localhost) by smtp.tuxdriver.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1Y5ZjK-0005uF-BY; Mon, 29 Dec 2014 07:47:31 -0500 Date: Mon, 29 Dec 2014 07:47:23 -0500 From: Neil Horman To: Olivier MATZ Message-ID: <20141229124723.GA27775@localhost.localdomain> References: <1419521597-31978-1-git-send-email-rkerur@gmail.com> <54A11509.5050904@6wind.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54A11509.5050904@6wind.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Score: -2.9 (--) X-Spam-Status: No Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH 0/7] Move EAL common functions 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 Dec 2014 12:47:35 -0000 On Mon, Dec 29, 2014 at 09:47:05AM +0100, Olivier MATZ wrote: > Hi Ravi, > > On 12/25/2014 04:33 PM, Ravi Kerur wrote: > > Common functions in linuxapp and bsdapp are moved into > > librte_eal/common directory. > > New files added follow _common_ naming conventions. > > Tested against ubuntu and FreeBSD. > > Trying to factorize the common code goes in the good direction. > > However I'm wondering if "common" is the proper place. Initially, > the common directory was for code common to linuxapp and baremetal. > Now that baremetal does not exist anymore, a lot of code is common > to the 2 OSes that are supported (linux and FreeBSD). > > What about moving this code in "common-posix" instead? > It would let the door open for future ports (Windows? or any > other real time OS? Or back in baremetal?). > Posix doesn't make sense IMO, in that a large segment of the functions embodied in the common directory have nothing to do with posix API's, and are simply just useful functions that have not OS specific dependency (the entire eal_common_memory.c file for example, to name just one). If you wanted to rename the directory, I would say generic-os would be more appropriate. Neil > Regards, > Olivier >