hash: select cuckoo function at run-time
authorElza Mathew <elza.mathew@intel.com>
Mon, 6 Nov 2017 18:04:02 +0000 (10:04 -0800)
committerThomas Monjalon <thomas@monjalon.net>
Sat, 20 Jan 2018 14:34:50 +0000 (15:34 +0100)
commit3a47be9abbb64e44c85a689024a8de78a938e0c3
treec679492c748d2a524790a40aa3478fad3527407d
parente8f7a85e71b7391aa389027caa6e6e16169d0f05
hash: select cuckoo function at run-time

Compile-time function selection can potentially lead to
lower performance on generic builds done by distros.
Replaced compile time flag checks with run-time function
selection.

Signed-off-by: Elza Mathew <elza.mathew@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_hash/rte_cuckoo_hash.c
lib/librte_hash/rte_cuckoo_hash.h