vdpa/mlx5: Use async API for vq modify commands
authorDragos Tatulea <dtatulea@nvidia.com>
Fri, 16 Aug 2024 09:01:54 +0000 (12:01 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 25 Sep 2024 11:07:42 +0000 (07:07 -0400)
commit61674c154bb7f19fad612242022276e8bd9e10d2
treec361ffe4eb07c344afd368e9f953e5b1393556c5
parent1fcdf43ea69e976aae4f2d76ebb199cc0d4c5a88
vdpa/mlx5: Use async API for vq modify commands

Switch firmware vq modify command to be issued via the async API to
allow future parallelization. The new refactored function applies the
modify on a range of vqs and waits for their execution to complete.

For now the command is still used in a serial fashion. A later patch
will switch to modifying multiple vqs in parallel.

Signed-off-by: Dragos Tatulea <dtatulea@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Message-Id: <20240816090159.1967650-6-dtatulea@nvidia.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Eugenio PĂ©rez <eperezma@redhat.com>
Tested-by: Lei Yang <leiyang@redhat.com>
drivers/vdpa/mlx5/net/mlx5_vnet.c