eal: factorize configuration adjustment
authorThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 20 Nov 2014 21:57:22 +0000 (22:57 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 25 Nov 2014 12:33:35 +0000 (13:33 +0100)
commit8552f950ee9d90466e70176352fd2491bd6118dd
tree8fa33975526447feb9864c7a6a97a400dfe16a3e
parentf91fc65d12ae098da06027e0d8c011f4fee74599
eal: factorize configuration adjustment

Some adjustments are done after options parsing and are common
to Linux and BSD.

Remove process_type adjustment in rte_config_init() because
it is already done in eal_parse_args().
eal_proc_type_detect() is kept duplicated because it open a
file descriptor which is used later in each eal.c.

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_eal/bsdapp/eal/eal.c
lib/librte_eal/common/eal_common_options.c
lib/librte_eal/common/eal_options.h
lib/librte_eal/linuxapp/eal/eal.c