From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v6 3/4] net: add arm64 neon version of CRC compute APIs Date: Tue, 04 Jul 2017 15:53:48 +0200 Message-ID: <3095665.xB34d7aaer@xps> References: <20170427140618.35897-1-ashwin.sekhar@caviumnetworks.com> <20170704092408.30878-1-ashwin.sekhar@caviumnetworks.com> <20170704092408.30878-4-ashwin.sekhar@caviumnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, jerin.jacob@caviumnetworks.com, viktorin@rehivetech.com, jianbo.liu@linaro.org, jasvinder.singh@intel.com To: Ashwin Sekhar T K Return-path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 9D66E5587 for ; Tue, 4 Jul 2017 15:53:50 +0200 (CEST) In-Reply-To: <20170704092408.30878-4-ashwin.sekhar@caviumnetworks.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 04/07/2017 11:24, Ashwin Sekhar T K: > rte_net_crc_set_alg(enum rte_net_crc_alg alg) > { > switch (alg) { > - case RTE_NET_CRC_SSE42: > #ifdef X86_64_SSE42_PCLMULQDQ > + case RTE_NET_CRC_SSE42: > handlers = handlers_sse42; > -#else > - alg = RTE_NET_CRC_SCALAR; > -#endif > break; > +#elif defined(ARM64_NEON_PMULL) > + case RTE_NET_CRC_NEON: > + if (rte_cpu_get_flag_enabled(RTE_CPUFLAG_PMULL)) { > + handlers = handlers_neon; > + break; > + } > + /* fall-through */ > +#endif > case RTE_NET_CRC_SCALAR: > + /* fall-through */ > default: > handlers = handlers_scalar; > break; > I'm moving the fall-through comment outside of #ifdef to fix warning.