devargs: restore device type API
authorGaetan Rivet <gaetan.rivet@6wind.com>
Sat, 15 Jul 2017 17:59:27 +0000 (19:59 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 19 Jul 2017 21:40:28 +0000 (00:40 +0300)
commit39f403e0d5bbba765a42baf975b06ea4736c4cc7
treedf159395d296b04ac909402413172658dc8f7964
parentc0e2821041392c17594786d9e46ba5c83de097b5
devargs: restore device type API

Revert "devargs: make device types generic"

This commit broke the rte_devargs API by changing the meaning of
the rte_devtype enum.

Restore the previous API, unit tests and function calls.
Introduce parallel enum that acts as translation between previous API
and current structures.

Restoring the previous API means that -w and -b are not usable anymore
with any bus having implemented the "parse" operation. Only PCI devices
can be used with -w and -b, virtual devices are declared using vdev.

This (partially) reverts commit bd279a79366f50a4893fb84db91bbf64b56f9fb1.

Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
lib/librte_eal/common/eal_common_devargs.c
lib/librte_eal/common/eal_common_options.c
lib/librte_eal/common/eal_common_pci.c
lib/librte_eal/common/include/rte_dev.h
lib/librte_eal/common/include/rte_devargs.h
test/test/test_devargs.c