Re: [dpdk-dev] [PATCH 2/2] net/vhost: prevent multiple setup on reconfig

2020-02-19 Thread Itsuro ODA
Hi Maxime, Tiewi, On Wed, 19 Feb 2020 09:17:41 +0100 Maxime Coquelin wrote: > Hi Tiwei, > > On 2/19/20 4:44 AM, Tiwei Bie wrote: > > On Tue, Feb 18, 2020 at 06:22:40PM +0100, Maxime Coquelin wrote: > >> Ethdev's .dev_configure callback can be called multiple > >> time during a device life-time,

Re: [dpdk-dev] [PATCH 2/2] net/vhost: prevent multiple setup on reconfig

2020-02-19 Thread Maxime Coquelin
Hi Tiwei, On 2/19/20 4:44 AM, Tiwei Bie wrote: > On Tue, Feb 18, 2020 at 06:22:40PM +0100, Maxime Coquelin wrote: >> Ethdev's .dev_configure callback can be called multiple >> time during a device life-time, but Vhost makes the >> wrong assumption that it is not the case and try to >> setup again

Re: [dpdk-dev] [PATCH 2/2] net/vhost: prevent multiple setup on reconfig

2020-02-18 Thread Tiwei Bie
On Tue, Feb 18, 2020 at 06:22:40PM +0100, Maxime Coquelin wrote: > Ethdev's .dev_configure callback can be called multiple > time during a device life-time, but Vhost makes the > wrong assumption that it is not the case and try to > setup again the device on reconfiguration. > > This patch ensures

[dpdk-dev] [PATCH 2/2] net/vhost: prevent multiple setup on reconfig

2020-02-18 Thread Maxime Coquelin
Ethdev's .dev_configure callback can be called multiple time during a device life-time, but Vhost makes the wrong assumption that it is not the case and try to setup again the device on reconfiguration. This patch ensures the device hasn't been already setup before proceeding. Fixes: 3d01b759d267

Re: [dpdk-dev] [PATCH 2/2] net/vhost: prevent multiple setup on reconfig

2020-02-18 Thread David Marchand
On Tue, Feb 18, 2020 at 3:35 PM Maxime Coquelin wrote: > > Ethdev's .dev_configure callback can be called multiple > time during a device life-time, but Vhost makes the > wrong assumption that it is not the case and try to > setup again the device on reconfiguration. > > This patch ensures the dev

Re: [dpdk-dev] [PATCH 2/2] net/vhost: prevent multiple setup on reconfig

2020-02-18 Thread Wang, Yinan
Tested-by: Yinan Wang > -Original Message- > From: Maxime Coquelin > Sent: 2020年2月18日 22:35 > To: dev@dpdk.org; o...@valinux.co.jp; Wang, Yinan ; > Bie, Tiwei ; amore...@redhat.com > Cc: Maxime Coquelin > Subject: [PATCH 2/2] net/vhost: prevent multiple setup on reconfig > > Ethdev's .

Re: [dpdk-dev] [PATCH 2/2] net/vhost: prevent multiple setup on reconfig

2020-02-18 Thread Maxime Coquelin
On 2/18/20 3:35 PM, Maxime Coquelin wrote: > Ethdev's .dev_configure callback can be called multiple > time during a device life-time, but Vhost makes the > wrong assumption that it is not the case and try to > setup again the device on reconfiguration. > > This patch ensures the device hasn't

[dpdk-dev] [PATCH 2/2] net/vhost: prevent multiple setup on reconfig

2020-02-18 Thread Maxime Coquelin
Ethdev's .dev_configure callback can be called multiple time during a device life-time, but Vhost makes the wrong assumption that it is not the case and try to setup again the device on reconfiguration. This patch ensures the device hasn't been already setup before proceeding. Fixes: 3d01b759d267