hash: fix build for non-x86 arch
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Fri, 17 Jul 2015 09:17:58 +0000 (10:17 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sat, 18 Jul 2015 17:47:21 +0000 (19:47 +0200)
commitfd1fa9bddd416bbe510bea340102f10d83602548
treef923d5f844f19108f2257c9182b6380c11b5b8c5
parentc83d2d00796ee5c12647007886c7fa483f97b82c
hash: fix build for non-x86 arch

Hash library uses optimized compare functions that use
x86 intrinsics, therefore non-x86 systems could not build
the library. In that case, the compare function is set
to the generic memcmp.

Fixes: 48a399119619 ("hash: replace with cuckoo hash implementation")

Reported-by: Zhigang Lu <zlu@ezchip.com>
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Zhigang Lu <zlu@ezchip.com>
lib/librte_hash/rte_cmp_x86.h [new file with mode: 0644]
lib/librte_hash/rte_cuckoo_hash.c