From: Bruce Richardson Date: Mon, 13 Sep 2021 14:34:24 +0000 (+0100) Subject: eal/freebsd: ignore in-memory option X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=0faa4cfc50275751a86ed17147175c78a36f0da2;p=dpdk.git eal/freebsd: ignore in-memory option The in-memory option is not supported on FreeBSD so print a warning and ignore the flag when it is specified for BSD apps. The lack of support is due to the different way in which memory is managed on FreeBSD using the contigmem driver rather than via a hugetlbfs filesystem. Fixes: 14de8734c401 ("eal: add --in-memory option") Cc: stable@dpdk.org Signed-off-by: Bruce Richardson --- diff --git a/lib/eal/freebsd/eal.c b/lib/eal/freebsd/eal.c index 6cee5ae369..fb734012a4 100644 --- a/lib/eal/freebsd/eal.c +++ b/lib/eal/freebsd/eal.c @@ -718,6 +718,10 @@ rte_eal_init(int argc, char **argv) /* FreeBSD always uses legacy memory model */ internal_conf->legacy_mem = true; + if (internal_conf->in_memory) { + RTE_LOG(WARNING, EAL, "Warning: ignoring unsupported flag, '%s'\n", OPT_IN_MEMORY); + internal_conf->in_memory = false; + } if (eal_plugins_init() < 0) { rte_eal_init_alert("Cannot init plugins");