bpf: remove use of weak functions
authorBruce Richardson <bruce.richardson@intel.com>
Wed, 10 Apr 2019 13:45:17 +0000 (14:45 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 5 Jun 2019 14:28:20 +0000 (16:28 +0200)
commit9bd75b508e11fcb38589c90ae435734d6343ad78
treed8efeac5571857e521d1ba9f81c3b20dcaead9b6
parente53ce4e4137974f46743e74bd9ab912e0166c8b1
bpf: remove use of weak functions

Weak functions don't work well with static libraries and require the use of
"whole-archive" flag to ensure that the correct function is used when
linking.  Since the weak function is only used as a placeholder within this
library alone, we can replace it with a non-weak version protected using
preprocessor ifdefs.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Tested-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
lib/librte_bpf/bpf_load.c
lib/librte_bpf/meson.build