[dpdk-stable] [dpdk-dev] [PATCH] net/i40e: fix crash when calling i40e_vsi_delete_mac

Zhang, Qi Z qi.z.zhang at intel.com
Tue Apr 23 05:39:10 CEST 2019



> -----Original Message-----
> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of wangyunjian
> Sent: Tuesday, April 16, 2019 10:05 AM
> To: Ananyev, Konstantin <konstantin.ananyev at intel.com>; dev at dpdk.org
> Cc: xudingke <xudingke at huawei.com>; stable at dpdk.org; Lilijun (Jerry,
> Cloud Networking) <jerry.lilijun at huawei.com>; Zhang, Jerry
> <jerry.zhang at intel.com>
> Subject: Re: [dpdk-dev] [PATCH] net/i40e: fix crash when calling
> i40e_vsi_delete_mac
> 
> >
> > That is not specific to i40e or macvlan filter.
> > If inside your app several threads concurrently access/modify NIC
> > config, then you need to provide some synchronization mechanism for
> them.
> > DPDK ethdev API (as most others) on itself doesn't provide any
> > synchronization, leaving it up to the upper layer to choose the most
> > appropriate one.
> > Konstantin
> 
> Thanks. Now the lsc thread isn't controled by the upper layer.
> Do you have any idea to fix it?

What do you mean "the lsc thread isn't controlled by the upper layer"?

you may invoke ethdev APIs in LSC callback function, and use some lock to prevent race condition,

> 
> Thanks,
> Yunjian


More information about the stable mailing list