[dpdk-dev] [PATCH v4 2/2] vdpa/mlx5: hardware error handling

Maxime Coquelin maxime.coquelin at redhat.com
Wed Oct 28 15:19:00 CET 2020



On 10/27/20 9:28 AM, Xueming Li wrote:
> When hardware error happens, vdpa didn't get such information and leave
> driver in silent: working state but no response.
> 
> This patch subscribes firmware virtq error event and try to recover max
> 3 times in 3 seconds, stop virtq if max retry number reached.
> 
> When error happens, PMD log in warning level. If failed to recover,
> outputs error log. Query virtq statistics to get error counters report.
> 
> Acked-by: Matan Azrad <matan at nvidia.com>
> Signed-off-by: Xueming Li <xuemingl at nvidia.com>
> ---
>  doc/guides/rel_notes/release_20_11.rst |   6 +-
>  doc/guides/vdpadevs/mlx5.rst           |   8 ++
>  drivers/vdpa/mlx5/mlx5_vdpa.c          |   2 +
>  drivers/vdpa/mlx5/mlx5_vdpa.h          |  37 +++++++
>  drivers/vdpa/mlx5/mlx5_vdpa_event.c    | 144 +++++++++++++++++++++++++
>  drivers/vdpa/mlx5/mlx5_vdpa_virtq.c    |  61 ++++++++---
>  6 files changed, 242 insertions(+), 16 deletions(-)
> 


Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>

Thanks,
Maxime



More information about the dev mailing list