eal: support driver loading from directory
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 10 Nov 2015 14:28:15 +0000 (16:28 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 12 Nov 2015 15:56:45 +0000 (16:56 +0100)
commit9f8eb1d9ca0f56d6292db5858c52e6873d0abe51
tree284b4b2509fc6cf8198a7e04631699b7b3ea806a
parentfa9cdc6f84104152698ccc8a183272503300e204
eal: support driver loading from directory

Add support for directories as arguments to -d for loading all drivers
from a given directory. Additionally a default driver directory can be
set in build-time configuration, in which case it will be always be used
when EAL is initialized.

This simplifies usage in shared library configuration significantly over
manually loading individual drivers with -d, and allows distros to
establish a drop-in driver directory for seamless integration
with 3rd party drivers etc.

Suggested-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Suggested-by: David Marchand <david.marchand@6wind.com>
Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
Acked-by: David Marchand <david.marchand@6wind.com>
config/common_bsdapp
config/common_linuxapp
lib/librte_eal/common/eal_common_options.c