From: Konstantin Ananyev Date: Tue, 6 Oct 2020 15:03:11 +0000 (+0100) Subject: acl: select 256-bit AVX512 classify method by default X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=867d0d3649d8edda60c3fc863f9e491cca2c64d9;p=dpdk.git 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 --- 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