From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (xvm-189-124.dc0.ghst.net [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9C49EA0524; Fri, 8 Jan 2021 09:26:03 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 84EF0140E7C; Fri, 8 Jan 2021 09:26:03 +0100 (CET) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mails.dpdk.org (Postfix) with ESMTP id DB18C140DA0 for ; Fri, 8 Jan 2021 09:26:01 +0100 (CET) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6516B31B; Fri, 8 Jan 2021 00:26:01 -0800 (PST) Received: from net-arm-n1amp-01.shanghai.arm.com (net-arm-n1amp-01.shanghai.arm.com [10.169.208.220]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id E22DA3F70D; Fri, 8 Jan 2021 00:25:58 -0800 (PST) From: Ruifeng Wang To: Cc: dev@dpdk.org, vladimir.medvedkin@intel.com, jerinj@marvell.com, hemant.agrawal@nxp.com, honnappa.nagarahalli@arm.com, nd@arm.com, Ruifeng Wang Date: Fri, 8 Jan 2021 08:25:18 +0000 Message-Id: <20210108082523.1062058-1-ruifeng.wang@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201218101210.356836-1-ruifeng.wang@arm.com> References: <20201218101210.356836-1-ruifeng.wang@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2 0/5] lpm lookup with sve support X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" Added lpm4 lookupx4 implementation by using Arm SVE extension. The SVE is Scalable Vector Extension which is exposed to the user with a vector length agnostic interface. Refer to [1] for more information about SVE. Configuration was added for Neoverse N2 CPU which has SVE support. Some bugs were fixed so compiling with sve enabled can pass. [1] https://developer.arm.com/tools-and-software/server-and-hpc/compile/arm-instruction-emulator/resources/tutorials/sve --- v2: Fixed tbl8 group index calculation. (Vladimir) Added N2 config. Fixed compiling when sve was enabled. Ruifeng Wang (5): lpm: add sve support for lookup on Arm platform net/hns3: fix build with sve enabled net/octeontx: fix build with sve enabled common/octeontx2: fix build with sve enabled config: add Arm Neoverse N2 config/arm/arm64_n2_linux_gcc | 17 +++++ config/arm/meson.build | 11 +++- drivers/common/octeontx2/otx2_io_arm64.h | 37 ++--------- drivers/net/hns3/meson.build | 2 +- drivers/net/octeontx/base/octeontx_io.h | 16 ++--- lib/librte_eal/arm/include/rte_vect.h | 3 + lib/librte_lpm/meson.build | 2 +- lib/librte_lpm/rte_lpm.h | 4 ++ lib/librte_lpm/rte_lpm_sve.h | 83 ++++++++++++++++++++++++ 9 files changed, 127 insertions(+), 48 deletions(-) create mode 100644 config/arm/arm64_n2_linux_gcc create mode 100644 lib/librte_lpm/rte_lpm_sve.h -- 2.25.1