Re: [dpdk-dev] [PATCH 05/22] ethdev: introduce device lock

2018-06-19 Thread Zhang, Qi Z
Hi Anatoly: Sorry to miss this email and reply late. > -Original Message- > From: Burakov, Anatoly > Sent: Friday, June 15, 2018 11:43 PM > To: Zhang, Qi Z ; tho...@monjalon.net > Cc: Ananyev, Konstantin ; dev@dpdk.org; > Richardson, Bruce ; Yigit, Ferruh > ; Shelton, Benjamin H >

Re: [dpdk-dev] [PATCH 05/22] ethdev: introduce device lock

2018-06-19 Thread Zhang, Qi Z
t, Ferruh > ; Shelton, Benjamin H > ; Vangati, Narender > > Subject: Re: [dpdk-dev] [PATCH 05/22] ethdev: introduce device lock > > On Thu, 7 Jun 2018 20:38:32 +0800 > Qi Zhang wrote: > > > +/** > > + * Lock an Ethernet Device directly or register a callback f

Re: [dpdk-dev] [PATCH 05/22] ethdev: introduce device lock

2018-06-15 Thread Stephen Hemminger
On Thu, 7 Jun 2018 20:38:32 +0800 Qi Zhang wrote: > +/** > + * Lock an Ethernet Device directly or register a callback function > + * for condition check at runtime, this help application to prevent > + * a device be detached unexpectly. > + * NOTE: Lock a device mutliple times with same parmete

Re: [dpdk-dev] [PATCH 05/22] ethdev: introduce device lock

2018-06-15 Thread Burakov, Anatoly
On 07-Jun-18 1:38 PM, Qi Zhang wrote: Introduce API rte_eth_dev_lock and rte_eth_dev_unlock to let application lock or unlock on specific ethdev, a locked device can't be detached, this help applicaiton to prevent unexpected device detaching, especially in multi-process envrionment. Aslo the new

[dpdk-dev] [PATCH 05/22] ethdev: introduce device lock

2018-06-07 Thread Qi Zhang
Introduce API rte_eth_dev_lock and rte_eth_dev_unlock to let application lock or unlock on specific ethdev, a locked device can't be detached, this help applicaiton to prevent unexpected device detaching, especially in multi-process envrionment. Aslo the new API let application to register a callb