eal: cache last directory permissions checked
authorBruce Richardson <bruce.richardson@intel.com>
Fri, 3 Jul 2020 10:23:32 +0000 (11:23 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 5 Jul 2020 19:32:40 +0000 (21:32 +0200)
commite84921fb56e5411be42e9984d0a90f38a31dadfa
treeb26bd3655b4cc66e875af2ed96b9f2e2c57627b9
parent7b69fd1e9538ae7ab4e911eb8f56b9bd2d50d85c
eal: cache last directory permissions checked

When loading a directory of drivers, we check the same hierarchy multiple
times. If we just cache the last directory checked, this avoids repeated
checks of the same path, since all drivers in that path have been added to
the list consecutively.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_eal/common/eal_common_options.c