]> www.infradead.org Git - users/jedix/linux-maple.git/commit
vdpa/mlx5: Drop redundant code
authorDragos Tatulea <dtatulea@nvidia.com>
Wed, 26 Jun 2024 10:26:39 +0000 (13:26 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 9 Jul 2024 12:42:43 +0000 (08:42 -0400)
commit4c90a60ac2e09bcf615f7276d2fd1b2ba96bdce0
treec3b85f9cea5eeccd7aa47dbe0478f104d65dc77e
parent63f0cbad9781ae69b421f33114f26079c903a024
vdpa/mlx5: Drop redundant code

Originally, the second loop initialized the CVQ. But (acde3929492b
("vdpa/mlx5: Use consistent RQT size") initialized all the queues in the
first loop, so the second iteration in init_mvqs() is never called
because the first one will iterate up to max_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-3-560c491078df@nvidia.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vdpa/mlx5/net/mlx5_vnet.c