]> www.infradead.org Git - users/jedix/linux-maple.git/commit
vdpa/mlx5: Initialize and reset device with one queue pair
authorDragos Tatulea <dtatulea@nvidia.com>
Wed, 26 Jun 2024 10:26:43 +0000 (13:26 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 9 Jul 2024 12:42:44 +0000 (08:42 -0400)
commit1835ed4a5d49d2280731cfcc43a55473d77ea666
treee5273f45a3a986db9058f34b206fa7fa2ce0a9b9
parenta366465b4828b55e12f3a4cc0738bd5755d7077d
vdpa/mlx5: Initialize and reset device with one queue pair

The virtio spec says that a vdpa device should start off with one queue
pair. The driver is already compliant.

This patch moves the initialization to device add and reset times. This
is done in preparation for the pre-creation of hardware virtqueues at
device add time.

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