summaryrefslogtreecommitdiffstats
path: root/src/vnet/hash
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2021-10-31 20:18:13 +0100
committerFlorin Coras <florin.coras@gmail.com>2021-11-02 04:41:26 +0000
commit26abb607149315054b6d41de09f262890384ac3d (patch)
treeada92699f81baec97fa14c821a02c4c0422b1dc9 /src/vnet/hash
parentd0b266006010a3737203f0d97a24fb6609cc25e8 (diff)
hash: check if crc32c is available
Type: fix Change-Id: I2f87ed4b151ecd5034b69d6f060626be6fd74e85 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/hash')
-rw-r--r--src/vnet/hash/crc32_5tuple.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vnet/hash/crc32_5tuple.c b/src/vnet/hash/crc32_5tuple.c
index 29d92a96938..0a05b80d00f 100644
--- a/src/vnet/hash/crc32_5tuple.c
+++ b/src/vnet/hash/crc32_5tuple.c
@@ -12,6 +12,8 @@
#include <vnet/hash/hash.h>
#include <vppinfra/crc32.h>
+#ifdef clib_crc32c_uses_intrinsics
+
typedef union
{
struct
@@ -201,3 +203,5 @@ VNET_REGISTER_HASH_FUNCTION (crc32c_5tuple, static) = {
.function[VNET_HASH_FN_TYPE_ETHERNET] = vnet_crc32c_5tuple_ethernet_func,
.function[VNET_HASH_FN_TYPE_IP] = vnet_crc32c_5tuple_ip_func,
};
+
+#endif