Tested-by: Wang, Yinan <[email protected]>
> -----Original Message----- > From: dev <[email protected]> On Behalf Of Maxime Coquelin > Sent: 2020年5月7日 22:18 > To: Liu, Yong <[email protected]>; Ye, Xiaolong <[email protected]>; > Wang, Zhihong <[email protected]> > Cc: [email protected] > 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 <[email protected]> > > Applied to dpdk-next-virtio/master > > Thanks, > Maxime

