Message ID | 20210114065926.1200855-1-ruifeng.wang@arm.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 20B04A0A02; Thu, 14 Jan 2021 07:59:49 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 08F23140E84; Thu, 14 Jan 2021 07:59:49 +0100 (CET) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mails.dpdk.org (Postfix) with ESMTP id A734C140E73 for <dev@dpdk.org>; Thu, 14 Jan 2021 07:59:47 +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 F2BEA1FB; Wed, 13 Jan 2021 22:59:46 -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 7FD1A3F719; Wed, 13 Jan 2021 22:59:44 -0800 (PST) From: Ruifeng Wang <ruifeng.wang@arm.com> To: Cc: dev@dpdk.org, nd@arm.com, vladimir.medvedkin@intel.com, jerinj@marvell.com, drc@linux.vnet.ibm.com, honnappa.nagarahalli@arm.com, Ruifeng Wang <ruifeng.wang@arm.com> Date: Thu, 14 Jan 2021 06:59:21 +0000 Message-Id: <20210114065926.1200855-1-ruifeng.wang@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210108082127.1061538-1-ruifeng.wang@arm.com> References: <20210108082127.1061538-1-ruifeng.wang@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2 0/4] lpm lookupx4 fixes X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series | lpm lookupx4 fixes | |
Message
Ruifeng Wang
Jan. 14, 2021, 6:59 a.m. UTC
This series fixed bug in lpm4 vector lookup implementations. When more than 256 tbl8 groups are created, lookupx4 could retrieve next hop data from wrong group. The bug is there since next_hop field was expanded from 8-bit to 24-bit, and inherited by other implementations. Also updated test case to improve coverage to detect such failure. Ruifeng Wang (4): lpm: fix vector lookup for Arm lpm: fix vector lookup for x86 lpm: fix vector lookup for ppc64 test/lpm: improve coverage on tbl8 app/test/test_lpm.c | 25 +++++++++++++++++-------- lib/librte_lpm/rte_lpm_altivec.h | 8 ++++---- lib/librte_lpm/rte_lpm_neon.h | 8 ++++---- lib/librte_lpm/rte_lpm_sse.h | 8 ++++---- 4 files changed, 29 insertions(+), 20 deletions(-)
Comments
On Thu, Jan 14, 2021 at 7:59 AM Ruifeng Wang <ruifeng.wang@arm.com> wrote: > > This series fixed bug in lpm4 vector lookup implementations. > When more than 256 tbl8 groups are created, lookupx4 could > retrieve next hop data from wrong group. > The bug is there since next_hop field was expanded from > 8-bit to 24-bit, and inherited by other implementations. > > Also updated test case to improve coverage to detect such > failure. > > Ruifeng Wang (4): > lpm: fix vector lookup for Arm > lpm: fix vector lookup for x86 > lpm: fix vector lookup for ppc64 > test/lpm: improve coverage on tbl8 > > app/test/test_lpm.c | 25 +++++++++++++++++-------- > lib/librte_lpm/rte_lpm_altivec.h | 8 ++++---- > lib/librte_lpm/rte_lpm_neon.h | 8 ++++---- > lib/librte_lpm/rte_lpm_sse.h | 8 ++++---- > 4 files changed, 29 insertions(+), 20 deletions(-) Squashed patches 1-3 into one and applied the series, thanks.