eal: make log level save private
authorStephen Hemminger <stephen@networkplumber.org>
Wed, 25 Apr 2018 03:17:48 +0000 (20:17 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 25 Apr 2018 10:12:19 +0000 (12:12 +0200)
commitfa20768905c3a8b36ebb9e828e1643dd86f85f8b
tree99cd5098174d4eb7f797b8288fcf5867bd4a4a39
parent5690d37ddf6ac94f1ae4b9ee99153786e89aea8b
eal: make log level save private

We don't want format of eal log level saved values to be visible
in ABI. Move to private storage in eal_common_log.

Includes minor optimization. Compile the regular expression for
each log match once, rather than each time it is used.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
lib/librte_eal/common/eal_common_log.c
lib/librte_eal/common/eal_common_options.c
lib/librte_eal/common/eal_private.h
lib/librte_eal/common/include/rte_log.h