diff options
author | Damjan Marion <damarion@cisco.com> | 2021-09-22 15:28:29 +0200 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2021-09-23 18:15:27 +0000 |
commit | 4dc098f961064d0de1db9ba7245540e3b94a9912 (patch) | |
tree | 0ce4436873a45589c3f3ed4e2bb73f13a6c18068 /src/vnet/classify/vnet_classify.c | |
parent | 192c55f2e7bcc3de31368dfa853f1d21534ce47c (diff) |
classify: use AVX-512 to calculate hash on x86
Type:improvement
Change-Id: I9f9f16eabf64203db11cd4338948d76ca5e0ef12
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/classify/vnet_classify.c')
-rw-r--r-- | src/vnet/classify/vnet_classify.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/classify/vnet_classify.c b/src/vnet/classify/vnet_classify.c index 796250735e4..0b819db3573 100644 --- a/src/vnet/classify/vnet_classify.c +++ b/src/vnet/classify/vnet_classify.c @@ -148,6 +148,7 @@ vnet_classify_new_table (vnet_classify_main_t *cm, const u8 *mask, t->match_n_vectors = match_n_vectors; t->skip_n_vectors = skip_n_vectors; t->entries_per_page = 2; + t->load_mask = pow2_mask (match_n_vectors * 2); t->mheap = clib_mem_create_heap (0, memory_size, 1 /* locked */ , "classify"); |