Re: [dpdk-dev] [PATCH v7 06/17] drivers: replace page size definitions with function

2021-03-19 Thread McDaniel, Timothy
> -Original Message- > From: Thomas Monjalon > Sent: Friday, March 19, 2021 9:57 AM > To: dev@dpdk.org > Cc: nc...@alpinelinux.org; Andrew Boyer ; Andrew > Rybchenko ; David Marchand > ; Burakov, Anatoly > ; Stephen Hemminger > ; Long Li ; Jay Zhou > ; McDaniel, Timothy > ; Rasesh Mody

[dpdk-dev] [PATCH v7 06/17] drivers: replace page size definitions with function

2021-03-19 Thread Thomas Monjalon
The page size is often retrieved from the macro PAGE_SIZE. If PAGE_SIZE is not defined, it is either using hard coded default, or getting the system value from the UNIX-only function sysconf(). Such definitions are replaced with the generic function rte_mem_page_size() defined for each supported O