From: Damjan Marion Date: Sun, 31 Oct 2021 19:18:13 +0000 (+0100) Subject: hash: check if crc32c is available X-Git-Tag: v22.06-rc0~338 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=26abb607149315054b6d41de09f262890384ac3d;p=vpp.git hash: check if crc32c is available Type: fix Change-Id: I2f87ed4b151ecd5034b69d6f060626be6fd74e85 Signed-off-by: Damjan Marion --- 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