numam-dpdk/lib/librte_eal
Olivier Matz 729f17a932 mem: revert page locking when not using hugepages
This reverts commit 593a084afc.

Since recently [1], it is not possible to run the dpdk with
non-root privileges and the --no-huge option. This is because the eal
layer tries to lock the memory. Using locked memory is mandatory for
physical devices because they reference physical addresses.

But a user may want to start the dpdk without locked memory, because he
does not have the permission to do so, and/or does not have this need,
for instance because he uses virtual drivers.

So this commit reverts the use of MAP_LOCKED in mmap() flags.

[1] http://www.dpdk.org/ml/archives/dev/2016-May/039404.html

Fixes: 593a084afc ("mem: lock pages when not using hugepages")

Reported-by: Panu Matilainen <pmatilai@redhat.com>
Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
2016-06-30 19:15:32 +02:00
..
bsdapp pci: fix config space access on FreeBSD 2016-06-15 17:13:55 +02:00
common pci: increase log level to show blacklisted devices 2016-06-30 14:01:37 +02:00
linuxapp mem: revert page locking when not using hugepages 2016-06-30 19:15:32 +02:00
Makefile config: remove EAL flags for OS environment 2016-03-05 11:09:31 +01:00