[dpdk-dev] [PATCH v4] eal: fix memory mapping for 32-bit targets

2021-05-11 Thread Lance Richardson
For 32-bit targets, size_t is normally a 32-bit type and does not have sufficient range to represent 64-bit offsets that can are needed when mapping PCI addresses. Use off_t instead, which is usually a 64-bit type when compiled with _D_FILE_OFFSET_BITS=64 as is the case for DPDK. Found when attemp

Re: [dpdk-dev] [PATCH v4] eal: fix memory mapping for 32-bit targets

2021-05-11 Thread Dmitry Kozlyuk
2021-05-11 11:56 (UTC-0400), Lance Richardson: > > v4: Identical to v1, with now included in rte_eal_paging.h > > to (hopefully) make off_t available for Windows builds. > > With this version, using off_t is no longer a problem, however based on the > new compilation error it appears that

Re: [dpdk-dev] [PATCH v4] eal: fix memory mapping for 32-bit targets

2021-05-11 Thread Lance Richardson
> v4: Identical to v1, with now included in rte_eal_paging.h > to (hopefully) make off_t available for Windows builds. With this version, using off_t is no longer a problem, however based on the new compilation error it appears that for Windows, off_t is a 32-bit type while size_t is a 64-b

Re: [dpdk-dev] [PATCH v4] eal: fix memory mapping for 32-bit targets

2021-05-11 Thread Thomas Monjalon
11/05/2021 18:08, Dmitry Kozlyuk: > 2021-05-11 11:56 (UTC-0400), Lance Richardson: > > > v4: Identical to v1, with now included in rte_eal_paging.h > > > to (hopefully) make off_t available for Windows builds. > > > > With this version, using off_t is no longer a problem, however based on