Skip to content

Commit ebebaf4

Browse files
dtatuleamstsirkin
authored andcommitted
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 <[email protected]> Acked-by: Eugenio Pérez <[email protected]> Signed-off-by: Dragos Tatulea <[email protected]> Message-Id: <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
1 parent 1e8dac7 commit ebebaf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/vdpa/mlx5/net/mlx5_vnet.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2868,7 +2868,7 @@ static int mlx5_vdpa_change_map(struct mlx5_vdpa_dev *mvdev,
28682868

28692869
mlx5_vdpa_update_mr(mvdev, new_mr, asid);
28702870

2871-
for (int i = 0; i < ndev->cur_num_vqs; i++)
2871+
for (int i = 0; i < mvdev->max_vqs; i++)
28722872
ndev->vqs[i].modified_fields |= MLX5_VIRTQ_MODIFY_MASK_VIRTIO_Q_MKEY |
28732873
MLX5_VIRTQ_MODIFY_MASK_DESC_GROUP_MKEY;
28742874

0 commit comments

Comments
 (0)