]> git.droids-corp.org - dpdk.git/commit
vdpa/mlx5: fix maximum number of virtqs
authorLi Zhang <lizh@nvidia.com>
Sat, 18 Jun 2022 09:02:44 +0000 (12:02 +0300)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Tue, 21 Jun 2022 09:17:41 +0000 (11:17 +0200)
commit6f065d1539bed56602e3c6159c99cccb3bca38e4
tree1eb9d0336e75fef36a6a91d1ad1f9b0e63349fb2
parentad0eeb83ea593215bed8a4bd706438c157234210
vdpa/mlx5: fix maximum number of virtqs

The driver wrongly takes the capability value for
the number of virtq pairs instead of just the number of virtqs.

Adjust all the usages of it to be the number of virtqs.

Fixes: c2eb33aaf967 ("vdpa/mlx5: manage virtqs by array")
Cc: stable@dpdk.org
Signed-off-by: Li Zhang <lizh@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/vdpa/mlx5/mlx5_vdpa.c
drivers/vdpa/mlx5/mlx5_vdpa_virtq.c