]> www.infradead.org Git - users/jedix/linux-maple.git/commit
vdpa/mlx5: Use suspend/resume during VQP change
authorDragos Tatulea <dtatulea@nvidia.com>
Wed, 26 Jun 2024 10:26:56 +0000 (13:26 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 9 Jul 2024 12:42:49 +0000 (08:42 -0400)
commit3b3adb3bbfce275400b21f7a0d54db0ba0a46cc9
treea890b94486a2be63027ce7f36fb865d11b61a402
parentac85cd904dc9a5e83643ec9da0c43b0a95193158
vdpa/mlx5: Use suspend/resume during VQP change

Resume a VQ if it is already created when the number of VQ pairs
increases. This is done in preparation for VQ pre-creation which is
coming in a later patch. It is necessary because calling setup_vq() on
an already created VQ will return early and will not enable the queue.

For symmetry, suspend a VQ instead of tearing it down when the number of
VQ pairs decreases. But only if the resume operation is supported.

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