]> www.infradead.org Git - users/jedix/linux-maple.git/commit
vdpa/mlx5: Add error code for suspend/resume VQ
authorDragos Tatulea <dtatulea@nvidia.com>
Wed, 26 Jun 2024 10:26:53 +0000 (13:26 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 9 Jul 2024 12:42:48 +0000 (08:42 -0400)
commitb89bb349f276d7d6688527312eef03d12493b9d4
treef36b35060410a493edac3485dad4960a35c157aa
parentfc9af25d04d635ea4590681d044284f97766da48
vdpa/mlx5: Add error code for suspend/resume VQ

Instead of blindly calling suspend/resume_vqs(), make then return error
codes.

To keep compatibility, keep suspending or resuming VQs on error and
return the last error code. The assumption here is that the error code
would be the same.

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