]> git.baikalelectronics.ru Git - kernel.git/commit
vdpa/mlx5: Fix queue type selection logic
authorEli Cohen <elic@nvidia.com>
Wed, 11 Aug 2021 05:37:59 +0000 (08:37 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 11 Aug 2021 10:44:43 +0000 (06:44 -0400)
commitc027c754cdc47e9f5622999eb56312652dd64448
tree0bd2f5e96be4c3069c827e0c75dc0411c423da6a
parent7e71e59f720f7fb528e6b71335c99e8d2206178e
vdpa/mlx5: Fix queue type selection logic

get_queue_type() comments that splict virtqueue is preferred, however,
the actual logic preferred packed virtqueues. Since firmware has not
supported packed virtqueues we ended up using split virtqueues as was
desired.

Since we do not advertise support for packed virtqueues, we add a check
to verify split virtqueues are indeed supported.

Fixes: 707e0f8d9b65 ("vdpa/mlx5: Add VDPA driver for supported mlx5 devices")
Signed-off-by: Eli Cohen <elic@nvidia.com>
Link: https://lore.kernel.org/r/20210811053759.66752-1-elic@nvidia.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vdpa/mlx5/net/mlx5_vnet.c
include/linux/mlx5/mlx5_ifc_vdpa.h