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 5F82146D93; Fri, 22 Aug 2025 06:00:33 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 00A85402A2; Fri, 22 Aug 2025 06:00:32 +0200 (CEST) Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by mails.dpdk.org (Postfix) with ESMTP id 6C35B40292 for ; Fri, 22 Aug 2025 06:00:31 +0200 (CEST) Received: from mail.maildlp.com (unknown [172.19.162.254]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4c7RJy4n9nztTKm; Fri, 22 Aug 2025 11:59:30 +0800 (CST) Received: from kwepemo500011.china.huawei.com (unknown [7.202.195.194]) by mail.maildlp.com (Postfix) with ESMTPS id 3CB30180485; Fri, 22 Aug 2025 12:00:29 +0800 (CST) Received: from [10.67.121.193] (10.67.121.193) by kwepemo500011.china.huawei.com (7.202.195.194) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Fri, 22 Aug 2025 12:00:28 +0800 Message-ID: Date: Fri, 22 Aug 2025 12:00:28 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/3] net/hns3: fix inconsistent lock To: David Marchand CC: , , , , References: <20250813073317.1352274-1-huangdengdui@huawei.com> <20250813073317.1352274-2-huangdengdui@huawei.com> Content-Language: en-US From: huangdengdui In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.121.193] X-ClientProxiedBy: kwepems100002.china.huawei.com (7.221.188.206) To kwepemo500011.china.huawei.com (7.202.195.194) 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 On 2025/8/21 20:24, David Marchand wrote: > Hello, > > On Wed, Aug 13, 2025 at 9:33 AM Dengdui Huang wrote: >> >> The hns3 driver supports configuring RSS through both ops API and >> rte_flow API. The ops API uses spink lock, while the rte_flow API uses >> pthread mutex lock. When concurrent calls occur, issues may arise. >> This patch replaces the lock in the flow API with spink lock. >> >> Fixes: 1bdcca8006e4 ("net/hns3: fix flow director lock") >> Cc: stable@dpdk.org >> >> Signed-off-by: Dengdui Huang >> --- >> drivers/net/hns3/hns3_ethdev.h | 1 - >> drivers/net/hns3/hns3_fdir.c | 13 -------- >> drivers/net/hns3/hns3_flow.c | 57 +++++++++++++--------------------- >> 3 files changed, 22 insertions(+), 49 deletions(-) > > With this change, is it possible to enable the lock annotations check? > This is fine. I will enable it in the next version. > I mean: > $ git diff > diff --git a/drivers/net/hns3/meson.build b/drivers/net/hns3/meson.build > index 53a9dd6f39..36ce93ccde 100644 > --- a/drivers/net/hns3/meson.build > +++ b/drivers/net/hns3/meson.build > @@ -35,8 +35,6 @@ sources = files( > > require_iova_in_mbuf = false > > -annotate_locks = false > - > deps += ['hash'] > > cflags += no_wvla_cflag > > > >