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: Remove duplicate suspend code

Use the dedicated suspend_vqs() function instead.

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-6-560c491078df@nvidia.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>

authored by

Dragos Tatulea and committed by
Michael S. Tsirkin
a366465b 34bd86c7

+1 -6
+1 -6
drivers/vdpa/mlx5/net/mlx5_vnet.c
··· 3355 3355 { 3356 3356 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev); 3357 3357 struct mlx5_vdpa_net *ndev = to_mlx5_vdpa_ndev(mvdev); 3358 - struct mlx5_vdpa_virtqueue *mvq; 3359 - int i; 3360 3358 3361 3359 mlx5_vdpa_info(mvdev, "suspending device\n"); 3362 3360 3363 3361 down_write(&ndev->reslock); 3364 3362 unregister_link_notifier(ndev); 3365 - for (i = 0; i < ndev->cur_num_vqs; i++) { 3366 - mvq = &ndev->vqs[i]; 3367 - suspend_vq(ndev, mvq); 3368 - } 3363 + suspend_vqs(ndev); 3369 3364 mlx5_vdpa_cvq_suspend(mvdev); 3370 3365 mvdev->suspended = true; 3371 3366 up_write(&ndev->reslock);