table: fix arm64 hash function selection
authorJerin Jacob <jerinj@marvell.com>
Sat, 6 Apr 2019 13:29:41 +0000 (13:29 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 10 Apr 2019 20:04:37 +0000 (22:04 +0200)
commite3eb65cab308508883139b2b79c8348ec0682eec
tree7168def7c762dad5d34c46bc9be3191fe8743b78
parentbdcfcceb7a0b7534a0dba669279d18bd0f98d5e5
table: fix arm64 hash function selection

Use CRC32 instruction only when it is available to avoid
the build issue like below.

{standard input}:16: Error:
selected processor does not support `crc32cx w3,w3,x0'

Fixes: ea7be0a0386e ("lib/librte_table: add hash function headers")
Cc: stable@dpdk.org
Signed-off-by: Jerin Jacob <jerinj@marvell.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
lib/librte_table/rte_table_hash_func.h