eal: fix plugin loading without requiring full path
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 23 Nov 2015 12:05:55 +0000 (14:05 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 23 Nov 2015 15:35:36 +0000 (16:35 +0100)
commit26852dcd0d9ef9456cfa55947b2020e584380b23
treea2785b81c8a78ae04910cb68bb47bfc2ad868876
parentca8477c881e454d327e2ab8f8c02687ae95a2546
eal: fix plugin loading without requiring full path

The added error checking on plugin initialization in
commit 9f8eb1d9ca0f56d6292db5858c52e6873d0abe51 broke the ability of
loading plugins by their basename from default linker locations.
Only use stat() for directory discovery and leave error handling
to dlopen() to restore former behavior.

Fixes: 9f8eb1d9ca0f ("eal: support driver loading from directory")

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
lib/librte_eal/common/eal_common_options.c