eal: rework long options parsing
authorDavid Marchand <david.marchand@6wind.com>
Mon, 22 Sep 2014 08:38:00 +0000 (10:38 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 23 Sep 2014 13:33:00 +0000 (15:33 +0200)
commitd7cb626f1dc21189507880b865eacdc0b5c4f566
tree5f942a4afcde552bed7e52598a0694317b0c3f9f
parent489a9d6c9f778014fdd2d5babf7c64daef6063f3
eal: rework long options parsing

Identify all options through the getopt_long return value.
This way, we only need a big switch/case.

Indentation is broken to ease commit review (fixed in next commit).

Suggested-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David Marchand <david.marchand@6wind.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
lib/librte_eal/bsdapp/eal/eal.c
lib/librte_eal/common/eal_common_options.c
lib/librte_eal/common/include/eal_options.h
lib/librte_eal/linuxapp/eal/eal.c