Skip to contentSkip to conversation

vdpa/mlx5: Clear ready indication for control VQ

PATCH Jason Wang 1 participant 1 message Sep 14, 2021 1 message not in the archive virtio core

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Jason Wang

author Acked-by
#1 lore raw
Quoted 15 lines · Eli Cohen

When clearing VQs ready indication for the data VQs, do the same for the control VQ.

Fixes 5262912ef3cf ("vdpa/mlx5: Add support for control VQ and MAC setting")
---
 drivers/vdpa/mlx5/net/mlx5_vnet.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/vdpa/mlx5/net/mlx5_vnet.c +0 -0
index 294ba05e6fc9..64dfd0f500d2 100644

drivers/vdpa/mlx5/net/mlx5_vnet.c static void clear_vqs_ready(struct mlx5_vdpa_net *ndev) · line 2151

Quoted 7 lines
drivers/vdpa/mlx5/net/mlx5_vnet.c +2 -0
@@ -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;
 }
 
Quoted 4 lines
drivers/vdpa/mlx5/net/mlx5_vnet.c +0 -1
 static void mlx5_vdpa_set_status(struct vdpa_device *vdev, u8 status)
--

2.32.0

_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization