Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
d0b2660
)
hash: check if crc32c is available
99/34299/2
author
Damjan Marion
<damarion@cisco.com>
Sun, 31 Oct 2021 19:18:13 +0000
(20:18 +0100)
committer
Florin Coras
<florin.coras@gmail.com>
Tue, 2 Nov 2021 04:41:26 +0000
(
04:41
+0000)
Type: fix
Change-Id: I2f87ed4b151ecd5034b69d6f060626be6fd74e85
Signed-off-by: Damjan Marion <damarion@cisco.com>
src/vnet/hash/crc32_5tuple.c
patch
|
blob
|
history
diff --git
a/src/vnet/hash/crc32_5tuple.c
b/src/vnet/hash/crc32_5tuple.c
index
29d92a9
..
0a05b80
100644
(file)
--- 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