]> www.infradead.org Git - users/jedix/linux-maple.git/commit
vdpa/mlx5: Set an initial size on the VQ
authorDragos Tatulea <dtatulea@nvidia.com>
Wed, 26 Jun 2024 10:26:48 +0000 (13:26 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 9 Jul 2024 12:42:46 +0000 (08:42 -0400)
commitad9758fdafeeee52b4b31cad20acfaa8adca8b6a
treefcfb6a3fad4c84f9904812cdf997baabc8cad196
parentcdc3c7eaae695738b37f374866950602ec5af9c2
vdpa/mlx5: Set an initial size on the VQ

The virtqueue size is a pre-requisite for setting up any virtqueue
resources. For the upcoming optimization of creating virtqueues at
device add, the virtqueue size has to be configured.

The queue size check in setup_vq() will always be false. So remove it.

Signed-off-by: Dragos Tatulea <dtatulea@nvidia.com>
Reviewed-by: Cosmin Ratiu <cratiu@nvidia.com>
Message-Id: <20240626-stage-vdpa-vq-precreate-v2-12-560c491078df@nvidia.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vdpa/mlx5/net/mlx5_vnet.c