mem: take reserved hugepages into account
authorBurakov, Anatoly <anatoly.burakov@intel.com>
Wed, 16 Apr 2014 11:11:12 +0000 (11:11 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 13 May 2014 08:11:18 +0000 (10:11 +0200)
commit0c3977dd156bbc22e2b64aa7f92de643d33e993a
treedb1955a70324b18b4832e5ad1894fbb704c99c3e
parent536ba2d8a867ecf4331673d4c45475e552d57e27
mem: take reserved hugepages into account

Some applications reserve hugepages for later use,
but DPDK doesn't take reserved pages into account
when calculating number of available number of hugepages.

This patch adds reading from "resv_hugepages" file
in addition to "free_hugepages".

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_eal/linuxapp/eal/eal_hugepage_info.c