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

Xia, Chenbo chenbo.xia at intel.com
Wed Sep 15 13:44:32 CEST 2021


> -----Original Message-----
> From: Xueming Li <xuemingl at nvidia.com>
> Sent: Wednesday, September 15, 2021 6:12 PM
> To: dev at dpdk.org
> Cc: xuemingl at nvidia.com; Andrew Rybchenko <andrew.rybchenko at oktetlabs.ru>;
> Maxime Coquelin <maxime.coquelin at redhat.com>; Xia, Chenbo
> <chenbo.xia at intel.com>
> Subject: [PATCH v2] net/virtio: wait device ready during reset
> 
> 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>
> --
> 2.33.0

Reviewed-by: Chenbo Xia <chenbo.xia at intel.com>


More information about the dev mailing list