Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Dragos Tatulea and committed by
Michael S. Tsirkin
4c90a60a 63f0cbad

-6
-6
drivers/vdpa/mlx5/net/mlx5_vnet.c
··· 3519 3519 mvq->fwqp.fw = true; 3520 3520 mvq->fw_state = MLX5_VIRTIO_NET_Q_OBJECT_NONE; 3521 3521 } 3522 - for (; i < ndev->mvdev.max_vqs; i++) { 3523 - mvq = &ndev->vqs[i]; 3524 - memset(mvq, 0, offsetof(struct mlx5_vdpa_virtqueue, ri)); 3525 - mvq->index = i; 3526 - mvq->ndev = ndev; 3527 - } 3528 3522 } 3529 3523 3530 3524 struct mlx5_vdpa_mgmtdev {