]> www.infradead.org Git - users/jedix/linux-maple.git/commit
vdpa/mlx5: Don't enable non-active VQs in .set_vq_ready()
authorDragos Tatulea <dtatulea@nvidia.com>
Wed, 26 Jun 2024 10:27:00 +0000 (13:27 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 9 Jul 2024 12:42:51 +0000 (08:42 -0400)
commit8e0751af1b1162342904dcb0410e8a8ef9cbf70b
tree498bb6c66f5fa455733f23ab24cc7af02ab58a28
parent2638134f710364c9e696a155bf16c6847959b1d9
vdpa/mlx5: Don't enable non-active VQs in .set_vq_ready()

VQ indices in the range [cur_num_qps, max_vqs) represent queues that
have not yet been activated. .set_vq_ready should not activate these
VQs.

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