From 867d0d3649d8edda60c3fc863f9e491cca2c64d9 Mon Sep 17 00:00:00 2001 From: Konstantin Ananyev Date: Tue, 6 Oct 2020 16:03:11 +0100 Subject: [PATCH] acl: select 256-bit AVX512 classify method by default On supported platforms, set RTE_ACL_CLASSIFY_AVX512X16 as default ACL classify algorithm. Note that AVX512X16 implementation uses 256-bit registers/instincts only to avoid possibility of frequency drop. Signed-off-by: Konstantin Ananyev --- lib/librte_acl/rte_acl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_acl/rte_acl.c b/lib/librte_acl/rte_acl.c index cb8ccc5c10..5cce45059e 100644 --- a/lib/librte_acl/rte_acl.c +++ b/lib/librte_acl/rte_acl.c @@ -226,6 +226,7 @@ acl_get_best_alg(void) #elif defined(RTE_ARCH_PPC_64) RTE_ACL_CLASSIFY_ALTIVEC, #elif defined(RTE_ARCH_X86) + RTE_ACL_CLASSIFY_AVX512X16, RTE_ACL_CLASSIFY_AVX2, RTE_ACL_CLASSIFY_SSE, #endif -- 2.20.1