mem: get hugepages config for bsd
The bsdapp part was missing in c5e9eeca5a67a8272f0fdedcd0afc9b2d22be376. This commit allows external libraries and applications to know if hugepages are enabled. Signed-off-by: Olivier Matz <olivier.matz@6wind.com> Acked-by: Neil Horman <nhorman@tuxdriver.com>
This commit is contained in:
parent
ad7ce1c7ee
commit
eca9a994bc
@ -759,6 +759,12 @@ rte_eal_mcfg_complete(void)
|
||||
rte_config.mem_config->magic = RTE_MAGIC;
|
||||
}
|
||||
|
||||
/* return non-zero if hugepages are enabled. */
|
||||
int rte_eal_has_hugepages(void)
|
||||
{
|
||||
return !internal_config.no_hugetlbfs;
|
||||
}
|
||||
|
||||
/* Abstraction for port I/0 privilage */
|
||||
static int
|
||||
rte_eal_iopl_init(void)
|
||||
|
Loading…
x
Reference in New Issue
Block a user