hash: customize compare function
authorYu Nemo Wenbin <yuwb_bjy@ctbri.com.cn>
Fri, 4 Dec 2015 03:11:41 +0000 (11:11 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 6 Dec 2015 23:55:50 +0000 (00:55 +0100)
commit95da2f8e9c61fb09c873c77e82a8d67f22ca4a38
treebc08eb8adc3b7758caab2c6604d4d709016236b9
parent5ddfbc850bdabf4d3266ac95a879ca1eb2e9fe31
hash: customize compare function

Give user a chance to customize the hash key compare function.
The default rte_hash_cmp_eq function is set in the rte_hash_create
function, but these builtin ones may not good enough, so the user
may call this to override the default one.

Signed-off-by: Yu Nemo Wenbin <yuwb_bjy@ctbri.com.cn>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
lib/librte_hash/rte_cuckoo_hash.c
lib/librte_hash/rte_hash.h
lib/librte_hash/rte_hash_version.map