numam-dpdk/lib/eal
Lance Richardson 6beb2d2947 eal: fix memory mapping on 32-bit target
For 32-bit targets, size_t is normally a 32-bit type and
does not have sufficient range to represent 64-bit offsets
that are needed when mapping PCI addresses.
Use uint64_t instead.

Found when attempting to run 32-bit Linux dpdk-testpmd
using VFIO driver:

    EAL: pci_map_resource(): cannot map resource(63, 0xc0010000, \
    0x200000, 0x20000000000): Invalid argument ((nil))

Fixes: c4b89ecb64 ("eal: introduce memory management wrappers")
Cc: stable@dpdk.org

Signed-off-by: Lance Richardson <lance.richardson@broadcom.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
2021-05-11 23:01:06 +02:00
..
arm eal/arm64: fix platform register bit 2021-05-04 18:55:09 +02:00
common eal: fix leak in shared lib mode detection 2021-05-10 15:31:42 +02:00
freebsd
include eal: fix memory mapping on 32-bit target 2021-05-11 23:01:06 +02:00
linux
ppc
unix eal: fix memory mapping on 32-bit target 2021-05-11 23:01:06 +02:00
windows eal: fix memory mapping on 32-bit target 2021-05-11 23:01:06 +02:00
x86
meson.build
version.map