eal/linux: support running as unprivileged user
authorBen Walker <benjamin.walker@intel.com>
Tue, 31 Jan 2017 17:44:53 +0000 (10:44 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 9 Mar 2017 16:08:46 +0000 (17:08 +0100)
commitcdc242f260e766bd95a658b5e0686a62ec04f5b0
treed042ad040071a73f2ffd0a9503d7354d5e4e5ccf
parent7968191b5a9a494056825d12069de8fa1297965f
eal/linux: support running as unprivileged user

For Linux kernel 4.0 and newer, the ability to obtain
physical page frame numbers for unprivileged users from
/proc/self/pagemap was removed. Instead, when an IOMMU
is present, simply choose our own DMA addresses instead.

Signed-off-by: Ben Walker <benjamin.walker@intel.com>
Acked-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
lib/librte_eal/common/eal_private.h
lib/librte_eal/linuxapp/eal/eal_memory.c
lib/librte_eal/linuxapp/eal/eal_pci.c