From patchwork Wed Jan 2 05:28:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ruifeng Wang X-Patchwork-Id: 49372 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5C5FE1B13C; Wed, 2 Jan 2019 06:29:18 +0100 (CET) Received: from foss.arm.com (foss.arm.com [217.140.101.70]) by dpdk.org (Postfix) with ESMTP id 41B571B105 for ; Wed, 2 Jan 2019 06:29:17 +0100 (CET) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 50E0FF; Tue, 1 Jan 2019 21:29:16 -0800 (PST) Received: from net-arm-thunderx2-02.shanghai.arm.com (net-arm-thunderx2-02.shanghai.arm.com [10.169.38.82]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id AA7523F5CF; Tue, 1 Jan 2019 21:29:14 -0800 (PST) From: Ruifeng Wang To: dev@dpdk.org Cc: thomas@monjalon.net, jerinj@marvell.com, hemant.agrawal@nxp.com, bruce.richardson@intel.com, chaozhu@linux.vnet.ibm.com, Honnappa.Nagarahalli@arm.com, nd@arm.com, Ruifeng Wang , tomaszx.kulasek@intel.com Date: Wed, 2 Jan 2019 13:28:26 +0800 Message-Id: <20190102052826.156605-1-ruifeng.wang@arm.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH v1] examples/l3fwd: enable hash multi lookup for ARM X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Compile option for hash_multi_lookup was broken, and caused feature cannot be enabled on Arm. This patch sets hash_multi_lookup method as default, and sequential lookup becomes optional. In test of 8192 flows with 128-byte packets, throughput increased by 25.6% after enabling hash_multi_lookup. Fixes: 52c97adc1f0f ("examples/l3fwd: fix exact match performance") Cc: tomaszx.kulasek@intel.com Signed-off-by: Ruifeng Wang Reviewed-by: Gavin Hu Reviewed-by: Phil Yang Tested-by: Ruifeng Wang --- examples/l3fwd/l3fwd.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/examples/l3fwd/l3fwd.h b/examples/l3fwd/l3fwd.h index c962deac3..063b80018 100644 --- a/examples/l3fwd/l3fwd.h +++ b/examples/l3fwd/l3fwd.h @@ -11,10 +11,6 @@ #define RTE_LOGTYPE_L3FWD RTE_LOGTYPE_USER1 -#if !defined(NO_HASH_MULTI_LOOKUP) && defined(RTE_MACHINE_CPUFLAG_NEON) -#define NO_HASH_MULTI_LOOKUP 1 -#endif - #define MAX_PKT_BURST 32 #define BURST_TX_DRAIN_US 100 /* TX drain every ~100us */