eal: read and parse device option separately
authorGaetan Rivet <gaetan.rivet@6wind.com>
Wed, 2 Aug 2017 17:10:22 +0000 (19:10 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 3 Aug 2017 17:53:31 +0000 (19:53 +0200)
commit4d0e2a5da74b030aa4f98c8d6249b2b47fca2317
tree11c09c4772f9a54acacc1556e2224b66bacb0b82
parentc9f814f331658844c7bc07879daa268f5e54bb5a
eal: read and parse device option separately

When the EAL parses the common options given to the application,
not all subsystems are available. Some device drivers are registered
afterward upon dynamic plugin loading.

Devices using those drivers are thus unable to be parsed by any drivers
and are rejected.

Store the device options first and keep them for later processing.
Parse these right before initializing the buses, the drivers must have
been stabilized at this point.

Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
Tested-by: Dirk-Holger Lenz <dirk.lenz@ng4t.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