eal: fix plugin directory scan to be filesystem agnostic
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 18 Nov 2015 06:45:23 +0000 (08:45 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 23 Nov 2015 15:51:53 +0000 (16:51 +0100)
commit46454f16d548afc202f157751365088910dcf0e7
tree6d83cd1bb38bd189eee196b01735af008b1f0dc9
parent26852dcd0d9ef9456cfa55947b2020e584380b23
eal: fix plugin directory scan to be filesystem agnostic

Not all filesystems supply struct dirent d_type field, in which case
everything in the specified directory would go ignored. One such
filesystem being XFS which RHEL 7 defaults to... stat() the entries
instead.

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

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