[dpdk-dev] [PATCH] lib/librte_table: fix arm64 hash function selection
Jerin Jacob Kollanukkaran
jerinj at marvell.com
Sat Apr 6 15:29:41 CEST 2019
From: Jerin Jacob <jerinj at marvell.com>
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: Gavin Hu <gavin.hu at arm.com>
Cc: stable at dpdk.org
Signed-off-by: Jerin Jacob <jerinj at marvell.com>
---
lib/librte_table/rte_table_hash_func.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/librte_table/rte_table_hash_func.h b/lib/librte_table/rte_table_hash_func.h
index 02296eabe..11ea5a90e 100644
--- a/lib/librte_table/rte_table_hash_func.h
+++ b/lib/librte_table/rte_table_hash_func.h
@@ -40,7 +40,7 @@ rte_crc32_u64(uint64_t crc, uint64_t v)
return _mm_crc32_u64(crc, v);
}
-#elif defined(RTE_ARCH_ARM64)
+#elif defined(RTE_ARCH_ARM64) && defined(RTE_MACHINE_CPUFLAG_CRC32)
#include "rte_table_hash_func_arm64.h"
#else
--
2.21.0
More information about the dev
mailing list