> -----Original Message-----
> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of wangyunjian
> Sent: Tuesday, April 16, 2019 10:05 AM
> To: Ananyev, Konstantin <konstantin.anan...@intel.com>; dev@dpdk.org
> Cc: xudingke <xudin...@huawei.com>; sta...@dpdk.org; Lilijun (Jerry,
> Cloud Networking) <jerry.lili...@huawei.com>; Zhang, Jerry
> <jerry.zh...@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

Reply via email to