From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <stable-bounces@dpdk.org> Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9DF7FA0547 for <public@inbox.dpdk.org>; Mon, 24 May 2021 13:28:45 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 97B774003C; Mon, 24 May 2021 13:28:45 +0200 (CEST) Received: from proxy.6wind.com (host.78.145.23.62.rev.coltfrance.com [62.23.145.78]) by mails.dpdk.org (Postfix) with ESMTP id AB1694003C; Mon, 24 May 2021 13:28:44 +0200 (CEST) Received: from localhost (unknown [10.16.0.39]) by proxy.6wind.com (Postfix) with ESMTP id 88F3E9B5063; Mon, 24 May 2021 13:28:44 +0200 (CEST) From: Thierry Herbelot <thierry.herbelot@6wind.com> To: dev@dpdk.org Cc: Thierry Herbelot <thierry.herbelot@6wind.com>, Thomas Monjalon <thomas@monjalon.net>, stable@dpdk.org, Cristian Dumitrescu <cristian.dumitrescu@intel.com> Date: Mon, 24 May 2021 13:28:36 +0200 Message-Id: <20210524112836.28224-1-thierry.herbelot@6wind.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210524085341.15184-1-thierry.herbelot@6wind.com> References: <20210524085341.15184-1-thierry.herbelot@6wind.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] [PATCH v2] table: fix typo X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches <stable.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/stable>, <mailto:stable-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/stable/> List-Post: <mailto:stable@dpdk.org> List-Help: <mailto:stable-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/stable>, <mailto:stable-request@dpdk.org?subject=subscribe> Errors-To: stable-bounces@dpdk.org Sender: "stable" <stable-bounces@dpdk.org> Check Bucket key for all possible indices. Fixes: d0a00966618ba ("table: add exact match SWX table") Cc: stable@dpdk.org Cc: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Thierry Herbelot <thierry.herbelot@6wind.com> -- V2: reword patch title --- lib/table/rte_swx_table_em.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/table/rte_swx_table_em.c b/lib/table/rte_swx_table_em.c index 788e25f6b912..03b28c4c9da0 100644 --- a/lib/table/rte_swx_table_em.c +++ b/lib/table/rte_swx_table_em.c @@ -280,7 +280,7 @@ table_key_data(struct table *t, uint32_t key_id) static inline int bkt_is_empty(struct bucket_extension *bkt) { - return (!bkt->sig[0] && !bkt->sig[1] && !bkt->sig[2] && !bkt->sig[2]) ? + return (!bkt->sig[0] && !bkt->sig[1] && !bkt->sig[2] && !bkt->sig[3]) ? 1 : 0; } -- 2.29.2