summaryrefslogtreecommitdiff
path: root/lib/librte_acl/rte_acl.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/librte_acl/rte_acl.c')
-rw-r--r--lib/librte_acl/rte_acl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/librte_acl/rte_acl.c b/lib/librte_acl/rte_acl.c
index e2fdebd..4ba9786 100644
--- a/lib/librte_acl/rte_acl.c
+++ b/lib/librte_acl/rte_acl.c
@@ -114,8 +114,11 @@ rte_acl_init(void)
{
enum rte_acl_classify_alg alg = RTE_ACL_CLASSIFY_DEFAULT;
-#ifdef RTE_ARCH_ARM64
+#if defined(RTE_ARCH_ARM64)
alg = RTE_ACL_CLASSIFY_NEON;
+#elif defined(RTE_ARCH_ARM)
+ if (rte_cpu_get_flag_enabled(RTE_CPUFLAG_NEON))
+ alg = RTE_ACL_CLASSIFY_NEON;
#else
#ifdef CC_AVX2_SUPPORT
if (rte_cpu_get_flag_enabled(RTE_CPUFLAG_AVX2))