]> www.infradead.org Git - users/jedix/linux-maple.git/commit
vdpa/mlx5: Consolidate all VQ modify to Ready to use resume_vq()
authorDragos Tatulea <dtatulea@nvidia.com>
Wed, 26 Jun 2024 10:26:54 +0000 (13:26 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 9 Jul 2024 12:42:48 +0000 (08:42 -0400)
commit843250271bdb16f3b38ed1d6f727a9e9e8632893
tree280e768a5e07b0f464ac1ef119a414a3ac3ea92c
parentb89bb349f276d7d6688527312eef03d12493b9d4
vdpa/mlx5: Consolidate all VQ modify to Ready to use resume_vq()

There are a few more places modifying the VQ to Ready directly. Let's
consolidate them into resume_vq().

The redundant warnings for resume_vq() errors can also be dropped.

There is one special case that needs to be handled for virtio-vdpa:
the initialized flag must be set to true earlier in setup_vq() so that
resume_vq() doesn't return early.

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-18-560c491078df@nvidia.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vdpa/mlx5/net/mlx5_vnet.c