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

2021-09-15 Thread Xueming(Steven) Li
On Wed, 2021-09-15 at 12:27 +0300, Andrew Rybchenko wrote: > On 9/15/21 12:21 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 re

[dpdk-dev] [PATCH v1] 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 v1] net/virtio: wait device ready during reset

2021-09-15 Thread Andrew Rybchenko
On 9/15/21 12:21 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. I have n