Re: [dpdk-dev] [PATCH v2] net/virtio: wait device ready during reset

2021-09-28 Thread Maxime Coquelin
On 9/15/21 12:12, Xueming Li wrote: According to virtio spec, the device MUST reset when 0 is written to device_status, and present 0 in device_status once reset is done. This patch waits status value to be 0 during reset operation, if timeout in 3 seconds, log and continue. Signed-off-by: X

[dpdk-dev] [PATCH v2] net/virtio: wait device ready during reset

2021-09-15 Thread Xueming Li
According to virtio spec, the device MUST reset when 0 is written to device_status, and present 0 in device_status once reset is done. This patch waits status value to be 0 during reset operation, if timeout in 3 seconds, log and continue. Signed-off-by: Xueming Li Cc: Andrew Rybchenko --- dri

Re: [dpdk-dev] [PATCH v2] net/virtio: wait device ready during reset

2021-09-15 Thread Xia, Chenbo
> -Original Message- > From: Xueming Li > Sent: Wednesday, September 15, 2021 6:12 PM > To: dev@dpdk.org > Cc: xuemi...@nvidia.com; Andrew Rybchenko ; > Maxime Coquelin ; Xia, Chenbo > > Subject: [PATCH v2] net/virtio: wait device ready during reset > > According to virtio spec, the devi

Re: [dpdk-dev] [PATCH v2] net/virtio: wait device ready during reset

2021-09-15 Thread Andrew Rybchenko
On 9/15/21 1:12 PM, Xueming Li wrote: > According to virtio spec, the device MUST reset when 0 is written to > device_status, and present 0 in device_status once reset is done. > > This patch waits status value to be 0 during reset operation, if > timeout in 3 seconds, log and continue. > > Signe