From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ravi Kerur Subject: Re: [PATCH v5 2/8] Move common functions in eal.c Date: Thu, 16 Apr 2015 15:08:49 -0700 Message-ID: References: <1428608301-31033-1-git-send-email-rkerur@gmail.com> <1428608412-31191-1-git-send-email-rkerur@gmail.com> <1428608412-31191-3-git-send-email-rkerur@gmail.com> <4780798.Fhdhc6hoDZ@xps13> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Cc: "dev-VfR2kkLFssw@public.gmane.org" To: Thomas Monjalon Return-path: In-Reply-To: <4780798.Fhdhc6hoDZ@xps13> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" On Thu, Apr 16, 2015 at 1:24 AM, Thomas Monjalon wrote: > Hi Ravi, > > I think this patch is too complex and move too many different things: > - sysfs > - mem_cfg > - proc_type > - application_usage > Please split them up. > > I'm not sure the classification in eal_common_runtime.c and > eal_common_system.c > new file is clear. > I chose most system related functions (hugepages, lcore sockets, sysfs) into eal_common_system.c file. Rest I moved them to eal_common_runtime.c file for lack of better name. You want more fine grained control and divide them into 4 files?? > > 2015-04-09 12:40, Ravi Kerur: > > + mem_config = (struct rte_mem_config *) mmap(NULL, > sizeof(*mem_config), > > Why this cast is needed? > Linux has it, BSD doesn't. I just chose Linux version.