From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jianbo Liu Subject: Re: [PATCH 2/4] eal/acl: enable acl for armv7-a Date: Wed, 2 Dec 2015 14:14:09 +0800 Message-ID: References: <1448995276-9599-1-git-send-email-jianbo.liu@linaro.org> <1448995276-9599-3-git-send-email-jianbo.liu@linaro.org> <20151201144343.GA4883@localhost.localdomain> <20151201154611.230b6137@pcviktorin.fit.vutbr.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: dev@dpdk.org To: Jan Viktorin Return-path: Received: from mail-vk0-f44.google.com (mail-vk0-f44.google.com [209.85.213.44]) by dpdk.org (Postfix) with ESMTP id 42A48DE6 for ; Wed, 2 Dec 2015 07:14:10 +0100 (CET) Received: by vkay187 with SMTP id y187so18726011vka.3 for ; Tue, 01 Dec 2015 22:14:09 -0800 (PST) In-Reply-To: <20151201154611.230b6137@pcviktorin.fit.vutbr.cz> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 1 December 2015 at 22:46, Jan Viktorin wrote: > On Tue, 1 Dec 2015 20:13:49 +0530 > Jerin Jacob wrote: > >> > enum rte_acl_classify_alg alg = RTE_ACL_CLASSIFY_DEFAULT; >> > >> > -#ifdef RTE_ARCH_ARM64 >> > +#if defined(RTE_ARCH_ARM) || defined(RTE_ARCH_ARM64) >> > alg = RTE_ACL_CLASSIFY_NEON; >> >> I believe SIMD is optional in armv7. If true, select alg as >> RTE_ACL_CLASSIFY_NEON only when cpufeature NEON enabled. > > Yes. Or, probably, we can be happy with > > #if defined(__ARM_NEON_FP) > ... > #endif > > as it is currently done in rte_memcpy_32.h. > > Regards > Jan Athough optional for armv7, I believe there is NEON in most of the popular armv7a chips. Anyway, I will add the checking... Thanks!