]> www.infradead.org Git - users/dwmw2/linux.git/commit
vdpa/mlx5: Clear and reinitialize software VQ data on reset
authorDragos Tatulea <dtatulea@nvidia.com>
Wed, 26 Jun 2024 10:26:44 +0000 (13:26 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 9 Jul 2024 12:42:45 +0000 (08:42 -0400)
commite5bcbd1de67611201873806d4d11ddfd172d0d12
tree107e12d66d3ab07f29e93e6ac748eabe23fc9d97
parent1835ed4a5d49d2280731cfcc43a55473d77ea666
vdpa/mlx5: Clear and reinitialize software VQ data on reset

The hardware VQ configuration is mirrored by data in struct
mlx5_vdpa_virtqueue . Instead of clearing just a few fields at reset,
fully clear the struct and initialize with the appropriate default
values.

As clear_vqs_ready() is used only during reset, get rid of it.

Reviewed-by: Cosmin Ratiu <cratiu@nvidia.com>
Acked-by: Eugenio Pérez <eperezma@redhat.com>
Signed-off-by: Dragos Tatulea <dtatulea@nvidia.com>
Message-Id: <20240626-stage-vdpa-vq-precreate-v2-8-560c491078df@nvidia.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vdpa/mlx5/net/mlx5_vnet.c