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 check in teardown_virtqueues()

The check is done inside teardown_vq().

Reviewed-by: Cosmin Ratiu <cratiu@nvidia.com>
Reviewed-by: Eugenio Pérez <eperezma@redhat.com>
Signed-off-by: Dragos Tatulea <dtatulea@nvidia.com>
Message-Id: <20240626-stage-vdpa-vq-precreate-v2-4-560c491078df@nvidia.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>

authored by

Dragos Tatulea and committed by
Michael S. Tsirkin
ad807392 4c90a60a

+2 -8
+2 -8
drivers/vdpa/mlx5/net/mlx5_vnet.c
··· 2559 2559 2560 2560 static void teardown_virtqueues(struct mlx5_vdpa_net *ndev) 2561 2561 { 2562 - struct mlx5_vdpa_virtqueue *mvq; 2563 2562 int i; 2564 2563 2565 - for (i = ndev->mvdev.max_vqs - 1; i >= 0; i--) { 2566 - mvq = &ndev->vqs[i]; 2567 - if (!mvq->initialized) 2568 - continue; 2569 - 2570 - teardown_vq(ndev, mvq); 2571 - } 2564 + for (i = ndev->mvdev.max_vqs - 1; i >= 0; i--) 2565 + teardown_vq(ndev, &ndev->vqs[i]); 2572 2566 } 2573 2567 2574 2568 static void update_cvq_info(struct mlx5_vdpa_dev *mvdev)