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>
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)