vdpa/mlx5: Fix wrong configuration of virtio_version_1_0
A message that is not in the archive (sent off-list or not yet received): [email protected]
Parav Pandit via Virtualization
Reviewed-by Parav PanditQuoted 31 lines
From: Eli Cohen <[email protected]>
Sent: Thursday, December 30, 2021 7:50 PMRemove overriding of
virtio_version_1_0which forced the virtqueue object to version 1.Fixes 1a86b377aa21 ("vdpa/mlx5: Add VDPA driver for supported mlx5devices")
Signed-off-by Eli Cohen <[email protected]>--- drivers/vdpa/mlx5/net/mlx5_vnet.c | 2 -- 1 file changed, 2 deletions(-)drivers/vdpa/mlx5/net/mlx5_vnet.c +0
-2@@ -871,8 +871,6 @@ static int create_virtqueue(struct mlx5_vdpa_net *ndev, struct mlx5_vdpa_virtque MLX5_SET(virtio_q, vq_ctx, umem_3_id, mvq->umem3.id);MLX5_SET (virtio_q, vq_ctx, umem_3_size, mvq->umem3.size);MLX5_SET (virtio_q, vq_ctx, pd, ndev->mvdev.res.pdn); -if (MLX5_CAP_DEV_VDPA_EMULATION (ndev->mvdev.mdev, eth_frame_offload_type)) -MLX5_SET (virtio_q, vq_ctx, virtio_version_1_0,1 );drivers/vdpa/mlx5/net/mlx5_vnet.c +0
-1err =mlx5_cmd_exec (ndev->mvdev.mdev, in, inlen, out,sizeof (out));if (err) --
Quoted 1 line
2.34.1
_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Jason Wang
Acked-byQuoted 29 lines · Parav Pandit
Quoted 29 lines
From: Eli Cohen <[email protected]>
Sent: Thursday, December 30, 2021 7:50 PMRemove overriding of
virtio_version_1_0which forced the virtqueue object to version 1.Fixes 1a86b377aa21 ("vdpa/mlx5: Add VDPA driver for supported mlx5devices")
Signed-off-by Eli Cohen <[email protected]>--- drivers/vdpa/mlx5/net/mlx5_vnet.c | 2 -- 1 file changed, 2 deletions(-)drivers/vdpa/mlx5/net/mlx5_vnet.c +0
-2@@ -871,8 +871,6 @@ static int create_virtqueue(struct mlx5_vdpa_net *ndev, struct mlx5_vdpa_virtque MLX5_SET(virtio_q, vq_ctx, umem_3_id, mvq->umem3.id);MLX5_SET (virtio_q, vq_ctx, umem_3_size, mvq->umem3.size);MLX5_SET (virtio_q, vq_ctx, pd, ndev->mvdev.res.pdn); -if (MLX5_CAP_DEV_VDPA_EMULATION (ndev->mvdev.mdev, eth_frame_offload_type)) -MLX5_SET (virtio_q, vq_ctx, virtio_version_1_0,1 );
Quoted 7 lines
Quoted 4 lines
err = mlx5_cmd_exec(ndev->mvdev.mdev, in, inlen, out, sizeof(out)); if (err)--
2.34.1Reviewed-by Parav Pandit <[email protected]>
_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Si-Wei Liu
Reviewed-byQuoted 5 lines · Eli Cohen
Remove overriding of
virtio_version_1_0which forced the virtqueue object to version 1.Fixes 1a86b377aa21 ("vdpa/mlx5: Add VDPA driver for supported mlx5 devices")Signed-off-by Eli Cohen <[email protected]>
-Siwei
Quoted 9 lines
--- drivers/vdpa/mlx5/net/mlx5_vnet.c | 2 -- 1 file changed, 2 deletions(-)drivers/vdpa/mlx5/net/mlx5_vnet.c +0
-0
drivers/vdpa/mlx5/net/mlx5_vnet.c static int create_virtqueue(struct mlx5_vdpa_net *ndev, struct mlx5_vdpa_virtque · line 876
Quoted 8 lines
drivers/vdpa/mlx5/net/mlx5_vnet.c +0
-2@@ -871,8 +871,6 @@ static int create_virtqueue(struct mlx5_vdpa_net *ndev, struct mlx5_vdpa_virtqueMLX5_SET (virtio_q, vq_ctx, umem_3_id, mvq->umem3.id);MLX5_SET (virtio_q, vq_ctx, umem_3_size, mvq->umem3.size);MLX5_SET (virtio_q, vq_ctx, pd, ndev->mvdev.res.pdn); -if (MLX5_CAP_DEV_VDPA_EMULATION (ndev->mvdev.mdev, eth_frame_offload_type)) -MLX5_SET (virtio_q, vq_ctx, virtio_version_1_0,1 ); err =mlx5_cmd_exec (ndev->mvdev.mdev, in, inlen, out,sizeof (out));if (err)
_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization