On Mon, Mar 01, 2021 at 10:53:46AM +0100, Thomas Monjalon wrote: > 01/03/2021 10:41, Bruce Richardson: > > On Sun, Feb 28, 2021 at 01:53:42PM +0100, Thomas Monjalon wrote: > > > 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 OS. > > > > > > Removing PAGE_SIZE definitions will fix dlb drivers for musl libc, > > > because #ifdef checks were missing, causing redefinition errors. > > > > > > Signed-off-by: Thomas Monjalon <tho...@monjalon.net> > > > --- > > Is the header file with the rte_mem_page_size() function missing from this > > patch? > > No, the function exists since DPDK 20.08. > > > Also, rather than a function for this, would it not be better to keep it as > > a macro as RTE_PAGE_SIZE, to keep it more in line with the macro people > > expect to have available? > > No because the size is not always known at compilation time. > See the implementation: > https://git.dpdk.org/dpdk/commit/?id=c4b89ecb64eae > Ok, thanks for the explanation.
- [dpdk-dev] [PATCH v6 00/17] Alpine/musl build support Thomas Monjalon
- [dpdk-dev] [PATCH v6 01/17] eal: fix comment of OS-s... Thomas Monjalon
- [dpdk-dev] [PATCH v6 02/17] buildtools: fix build wi... Thomas Monjalon
- [dpdk-dev] [PATCH v6 03/17] build: detect execinfo l... Thomas Monjalon
- [dpdk-dev] [PATCH v6 04/17] build: remove redundant ... Thomas Monjalon
- [dpdk-dev] [PATCH v6 05/17] eal: fix build with musl Thomas Monjalon
- [dpdk-dev] [PATCH v6 06/17] drivers: fix header incl... Thomas Monjalon
- [dpdk-dev] [PATCH v6 07/17] drivers: replace page si... Thomas Monjalon
- Re: [dpdk-dev] [PATCH v6 07/17] drivers: replace... Bruce Richardson
- Re: [dpdk-dev] [PATCH v6 07/17] drivers: rep... Thomas Monjalon
- Re: [dpdk-dev] [PATCH v6 07/17] drivers:... Bruce Richardson
- Re: [dpdk-dev] [PATCH v6 07/17] drivers: replace... Andrew Boyer
- [dpdk-dev] [PATCH v6 08/17] bus/pci: support I/O por... Thomas Monjalon
- [dpdk-dev] [PATCH v6 09/17] bus/dpaa: fix 64-bit arc... Thomas Monjalon
- [dpdk-dev] [PATCH v6 10/17] bus/dpaa: fix build with... Thomas Monjalon
- [dpdk-dev] [PATCH v6 11/17] common/dpaax/caamflib: f... Thomas Monjalon
- [dpdk-dev] [PATCH v6 12/17] common/dpaax/caamflib: s... Thomas Monjalon
- [dpdk-dev] [PATCH v6 13/17] net/cxgbe: remove use of... Thomas Monjalon
- [dpdk-dev] [PATCH v6 14/17] net/igc: remove use of u... Thomas Monjalon
- [dpdk-dev] [PATCH v6 15/17] vdpa/mlx5: replace pthre... Thomas Monjalon
- [dpdk-dev] [PATCH v6 16/17] app/testpmd: fix build w... Thomas Monjalon