[dpdk-dev] [PATCH v2] net/virtio: wait device ready during reset
Maxime Coquelin
maxime.coquelin at redhat.com
Tue Sep 28 17:31:16 CEST 2021
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: Xueming Li <xuemingl at nvidia.com>
> Cc: Andrew Rybchenko <andrew.rybchenko at oktetlabs.ru>
> ---
> drivers/net/virtio/virtio.c | 15 +++++++++++++--
> 1 file changed, 13 insertions(+), 2 deletions(-)
>
Applied to dpdk-next-virtio/main.
Thanks,
Maxime
More information about the dev
mailing list