summaryrefslogtreecommitdiffstats
path: root/src/vnet/hash/crc32_5tuple.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/hash/crc32_5tuple.c')
-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