From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 ; 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 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 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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(-) -- 2.25.1