eal: warn on legacy memory allocation requirement
authorThomas Monjalon <thomas@monjalon.net>
Tue, 30 Jul 2019 17:21:53 +0000 (19:21 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 5 Aug 2019 09:26:57 +0000 (11:26 +0200)
commit5113798fbf6991b75c4fa76989962cddae4edbc0
treef99616729f2a5af7b416bb3d14599de9bd4c43a1
parentad2b2cfb1ea352972deada8a8d2e9ba20102e2ae
eal: warn on legacy memory allocation requirement

When using --no-huge mode, dynamic allocation is not supported.
Because of this limitation, the option --legacy-mem is implied
and -m may be needed to specify the amount of memory to allocate.
Otherwise the default amount MEMSIZE_IF_NO_HUGE_PAGE will be allocated.

The option --socket-mem can also be used with --legacy-mem
when hugepages are supported.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/common/eal_common_options.c