Skip to content

Commit

Permalink
vdpa/mlx5: Clear ready indication for control VQ
Browse files Browse the repository at this point in the history
When clearing VQs ready indication for the data VQs, do the same for the
control VQ.

Fixes: 5262912 ("vdpa/mlx5: Add support for control VQ and MAC setting")
Signed-off-by: Eli Cohen <elic@nvidia.com>
Link: https://lore.kernel.org/r/20210909063652.46880-1-elic@nvidia.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
  • Loading branch information
Eli Cohen authored and Michael S. Tsirkin committed Sep 14, 2021
1 parent 7bb5fb2 commit ef12e4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/vdpa/mlx5/net/mlx5_vnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -2145,6 +2145,8 @@ static void clear_vqs_ready(struct mlx5_vdpa_net *ndev)

for (i = 0; i < ndev->mvdev.max_vqs; i++)
ndev->vqs[i].ready = false;

ndev->mvdev.cvq.ready = false;
}

static void mlx5_vdpa_set_status(struct vdpa_device *vdev, u8 status)
Expand Down

0 comments on commit ef12e4b

Please sign in to comment.