From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v6 1/5] efd: new Elastic Flow Distributor library Date: Tue, 17 Jan 2017 21:32:16 +0100 Message-ID: <6225531.lXhTr8K9SA@xps13> References: <1484559804-133610-1-git-send-email-pablo.de.lara.guarch@intel.com> <1484594519-227376-1-git-send-email-pablo.de.lara.guarch@intel.com> <1484594519-227376-2-git-send-email-pablo.de.lara.guarch@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Byron Marohn , Saikrishna Edupuganti To: Pablo de Lara Return-path: Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by dpdk.org (Postfix) with ESMTP id 943CB1094 for ; Tue, 17 Jan 2017 21:32:18 +0100 (CET) Received: by mail-wm0-f46.google.com with SMTP id c206so241888664wme.0 for ; Tue, 17 Jan 2017 12:32:18 -0800 (PST) In-Reply-To: <1484594519-227376-2-git-send-email-pablo.de.lara.guarch@intel.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" 2017-01-16 19:21, Pablo de Lara: > +#if defined(RTE_ARCH_X86) > + if (RTE_EFD_VALUE_NUM_BITS > 3 && rte_cpu_get_flag_enabled(RTE_CPUFLAG_AVX2)) magic number spotted! A comment would be probably helpful in this case. > + table->lookup_fn = EFD_LOOKUP_AVX2; > + else > +#endif > + table->lookup_fn = EFD_LOOKUP_SCALAR; >