[PATCH 1/3] net/hns3: fix inconsistent lock

Stephen Hemminger stephen at networkplumber.org
Mon Sep 8 21:58:15 CEST 2025


On Mon, 08 Sep 2025 13:53:38 +0200
Thomas Monjalon <thomas at monjalon.net> wrote:

> 13/08/2025 23:06, Stephen Hemminger:
> > On Wed, 13 Aug 2025 15:33:15 +0800
> > Dengdui Huang <huangdengdui at huawei.com> 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 at dpdk.org
> > > 
> > > Signed-off-by: Dengdui Huang <huangdengdui at huawei.com>
> > > ---  
> > 
> > With that mutex removed, you can also go farther and remove all references to pthread.  
> 
> This patch was (probably by mistake) in the next-net/for-main branch.
> I've dropped it when pulling in main.
> 

I went ahead and fixed the original patch to drop pthread references
and fix wording in commit message; and put it back in next-net.


More information about the dev mailing list