]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
vdpa/mlx5: Fix umem sizes assignments on VQ create
authorEli Cohen <elic@nvidia.com>
Sun, 30 May 2021 09:03:17 +0000 (12:03 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Jul 2021 14:02:20 +0000 (16:02 +0200)
commit6c9b12f3837f4a07853d08534b0daa649e61bf2a
treedfddf8bd3fc65ab0b947a241239a95c04295bf8e
parent1595c8a295b0af17027be1fadf5eb002ab3d13f9
vdpa/mlx5: Fix umem sizes assignments on VQ create

[ Upstream commit e3011776af16caf423f2c36d0047acd624c274fa ]

Fix copy paste bug assigning umem1 size to umem2 and umem3. The issue
was discovered when trying to use a 1:1 MR that covers the entire
address space where firmware complained that provided sizes are not
large enough. 1:1 MRs are required to support virtio_vdpa.

Fixes: 1a86b377aa21 ("vdpa/mlx5: Add VDPA driver for supported mlx5 devices")
Signed-off-by: Eli Cohen <elic@nvidia.com>
Link: https://lore.kernel.org/r/20210530090317.8284-1-elic@nvidia.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/vdpa/mlx5/net/mlx5_vnet.c