fib: add lookup runtime selection
authorVladimir Medvedkin <vladimir.medvedkin@intel.com>
Tue, 27 Oct 2020 15:11:24 +0000 (15:11 +0000)
committerDavid Marchand <david.marchand@redhat.com>
Wed, 28 Oct 2020 20:29:03 +0000 (21:29 +0100)
commita5b0d25d81f858f7815e2690b12503ff54d45be6
tree381040864562c08b385f1138227e28b206a4d874
parent4f66d3be5654990c2f0df948f1a3cc895e9cbfbf
fib: add lookup runtime selection

Add type argument to dir24_8_get_lookup_fn()
Now it supports 3 different lookup implementations:
 RTE_FIB_LOOKUP_DIR24_8_SCALAR_MACRO
 RTE_FIB_LOOKUP_DIR24_8_SCALAR_INLINE
 RTE_FIB_LOOKUP_DIR24_8_SCALAR_UNI

Add new rte_fib_select_lookup() - user can change lookup
function type runtime.

Signed-off-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
lib/librte_fib/dir24_8.c
lib/librte_fib/dir24_8.h
lib/librte_fib/rte_fib.c
lib/librte_fib/rte_fib.h
lib/librte_fib/version.map