From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v5 5/8] Move common functions in eal_memory.c Date: Thu, 16 Apr 2015 10:52:32 +0200 Message-ID: <119098819.UXtPphdbAd@xps13> References: <1428608301-31033-1-git-send-email-rkerur@gmail.com> <1428608412-31191-1-git-send-email-rkerur@gmail.com> <1428608412-31191-6-git-send-email-rkerur@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev-VfR2kkLFssw@public.gmane.org To: Ravi Kerur Return-path: In-Reply-To: <1428608412-31191-6-git-send-email-rkerur-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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" 2015-04-09 12:40, Ravi Kerur: > Changes in v5 > Rebase to latest code. > > Changes in v4 > Make rte_eal_hugepage_init and rte_eal_hugepage_attach as > wrapper functions for BSD. > > Changes in v3 > Changed subject to be more explicit on file name inclusion. > > Changes in v2 > Use common function names rte_eal_hugepage_init and > rte_eal_hugepage_attach for BSD and Linux. Update comments about its > actuality in function declaration. > > Changes in v1 > Move common functions in eal_memory.c to librte_eal/common/ > eal_common_memory.c file. > > Following functions are moved to eal_common_memory.c file > > static int rte_eal_memdevice_init(void); int rte_eal_memory_init(void); > > Fix checkpatch warnings and errors. > > Signed-off-by: Ravi Kerur [...] > +/** > + * This function prepares physical memory mapping > + * i.e. hugepages on Linux and > + * contigmem on BSD. OK > + * It is a wrapper function for BSD which will > + * internally call contigmem_init. Please avoid such comment which is difficult to maintain and not really useful. > + * It is a wrapper function for BSD which will > + * internally call contigmem_attach. Same comment. Except the above comments, it seems goods. Acked-by: Thomas Monjalon Thanks