vdpa/mlx5: Set mkey modified flags on all VQs
Otherwise, when virtqueues are moved from INIT to READY the latest mkey will not be set appropriately. 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-14-560c491078df@nvidia.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
1e8dac7bb6
commit
ebebaf45e8
@ -2868,7 +2868,7 @@ static int mlx5_vdpa_change_map(struct mlx5_vdpa_dev *mvdev,
|
|||||||
|
|
||||||
mlx5_vdpa_update_mr(mvdev, new_mr, asid);
|
mlx5_vdpa_update_mr(mvdev, new_mr, asid);
|
||||||
|
|
||||||
for (int i = 0; i < ndev->cur_num_vqs; i++)
|
for (int i = 0; i < mvdev->max_vqs; i++)
|
||||||
ndev->vqs[i].modified_fields |= MLX5_VIRTQ_MODIFY_MASK_VIRTIO_Q_MKEY |
|
ndev->vqs[i].modified_fields |= MLX5_VIRTQ_MODIFY_MASK_VIRTIO_Q_MKEY |
|
||||||
MLX5_VIRTQ_MODIFY_MASK_DESC_GROUP_MKEY;
|
MLX5_VIRTQ_MODIFY_MASK_DESC_GROUP_MKEY;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user