mem: lock pages when not using hugepages
authorOlivier Matz <olivier.matz@6wind.com>
Wed, 18 May 2016 11:04:42 +0000 (13:04 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 19 May 2016 12:40:13 +0000 (14:40 +0200)
commit593a084afc2b441895aeca78a2c4465e450d0ef5
tree98a78e4cec6a6493ea4341ad3d60959b4dbb537b
parentd1d914ebbc2514f334a3ed24057e63c8bb76363d
mem: lock pages when not using hugepages

Although the physical address won't be correct in memory segment,
this allows at least to retrieve the physical address using
rte_mem_virt2phy(). Indeed, if the page is not locked, the page
may not be present in physical memory.

With next commit, it allows a mempool to have properly filled physical
addresses when using --no-huge option.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_eal/linuxapp/eal/eal_memory.c