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

2019-04-22 Thread Zhang, Qi Z
; 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 synchronizat

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

2019-04-15 Thread wangyunjian
> > 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 t

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

2019-04-15 Thread Zhang, Qi Z
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Ananyev, Konstantin > Sent: Monday, April 15, 2019 8:21 PM > To: wangyunjian ; dev@dpdk.org > Cc: xudin...@huawei.com; sta...@dpdk.org > Subject: Re: [dpdk-dev] [PATCH] net/i40e: fix

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

2019-04-15 Thread Ananyev, Konstantin
Hi, > Now the macvlan filter list may be accessed in the same time by two > different threads and may cause a lot of optional errors. This patch > protects the macvlan filter access with a spinlock. > > Call Trace: > #1 0x7ffb4cbe2e3c in i40e_vsi_delete_mac (vsi=vsi@entry= > 0x400052

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

2019-04-13 Thread wangyunjian
From: Yunjian Wang Now the macvlan filter list may be accessed in the same time by two different threads and may cause a lot of optional errors. This patch protects the macvlan filter access with a spinlock. Call Trace: #1 0x7ffb4cbe2e3c in i40e_vsi_delete_mac (vsi=vsi@entry= 0x4000