]> www.infradead.org Git - users/jedix/linux-maple.git/commit
vdpa/mlx5: Start off rqt_size with max VQPs
authorDragos Tatulea <dtatulea@nvidia.com>
Wed, 26 Jun 2024 10:26:49 +0000 (13:26 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 9 Jul 2024 12:42:46 +0000 (08:42 -0400)
commit1e8dac7bb6ca9cdd7263d1526fa974353cf4ef05
tree9d6caf071b33d101fe7b2f4840e3280954056831
parentad9758fdafeeee52b4b31cad20acfaa8adca8b6a
vdpa/mlx5: Start off rqt_size with max VQPs

Currently rqt_size is initialized during device flag configuration.
That's because it is the earliest moment when device knows if MQ
(multi queue) is on or off.

Shift this configuration earlier to device creation time. This implies
that non-MQ devices will have a larger RQT size. But the configuration
will still be correct.

This is done in preparation for the pre-creation of hardware virtqueues
at device add time. When that change will be added, RQT will be created
at device creation time so it needs to be initialized to its max size.

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