eal: allow combining -m and --no-huge
authorSimon Kagstrom <simon.kagstrom@netinsight.net>
Wed, 27 May 2015 09:30:16 +0000 (11:30 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 15 Jun 2015 14:03:38 +0000 (16:03 +0200)
commita7de7e6beb6964b8ff9c1c913a519e76248923af
tree18ed0435fe5dc96ae8ba5c20d03bb11d4fcccc60
parenta8a9262de31bb7cfbf89f5f72417de5d7ff4ec48
eal: allow combining -m and --no-huge

Needed to run as non-root but with higher memory allocations, and
removes a constraint on no-huge mode being limited to 64M. A usage
example is if running with file input with the pcap PMD, which can be
done as non-root after this patch via e.g.,

    ./test-dpdk --no-huge -m 1024 -l 0,1 -n3
--vdev 'eth_pcap0,rx_pcap=eth-rx.pcap,tx_pcap=eth-tx.pcap'

Signed-off-by: Simon Kagstrom <simon.kagstrom@netinsight.net>
Signed-off-by: Johan Faltstrom <johan.faltstrom@netinsight.net>
Acked-by: David Marchand <david.marchand@6wind.com>
lib/librte_eal/common/eal_common_options.c