From 26abb607149315054b6d41de09f262890384ac3d Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Sun, 31 Oct 2021 20:18:13 +0100 Subject: hash: check if crc32c is available Type: fix Change-Id: I2f87ed4b151ecd5034b69d6f060626be6fd74e85 Signed-off-by: Damjan Marion --- src/vnet/hash/crc32_5tuple.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/vnet/hash') 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 #include +#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 -- cgit 1.2.3-korg