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)
committerMichael S. Tsirkin <mst@redhat.com>
Sat, 3 Jul 2021 08:50:56 +0000 (04:50 -0400)
commite3011776af16caf423f2c36d0047acd624c274fa
treea2003e29b6acf0c2eef28d48ede3900ad3de54f8
parent31c11db6bd93b0c051d2c835da4fa9bba636cfdb
vdpa/mlx5: Fix umem sizes assignments on VQ create

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>
drivers/vdpa/mlx5/net/mlx5_vnet.c