Tested-by: Wang, Yinan <yinan.w...@intel.com>
> -----Original Message----- > From: dev <dev-boun...@dpdk.org> On Behalf Of Maxime Coquelin > Sent: 2020年5月7日 22:18 > To: Liu, Yong <yong....@intel.com>; Ye, Xiaolong <xiaolong...@intel.com>; > Wang, Zhihong <zhihong.w...@intel.com> > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2] net/virtio: fix crash when device > reconnecting > > > > On 5/6/20 5:07 PM, Marvin Liu wrote: > > When doing virtio device initialization, virtqueues will be reset in > > server mode if ring type is packed. It will cause issue because queues > > have been freed in the beginning of device initialization. > > > > Fix this issue by checking whether device has been initialized before > > reset. If device hasn't been initialized, there's no need to reset > > queues. > > > > Fixes: 6ebbf4109f35 ("net/virtio-user: fix packed ring server mode") > > > > Signed-off-by: Marvin Liu <yong....@intel.com> > > Applied to dpdk-next-virtio/master > > Thanks, > Maxime