]> git.dujemihanovic.xyz Git - linux.git/commit
vdpa/mlx5: Introduce async fw command wrapper
authorDragos Tatulea <dtatulea@nvidia.com>
Fri, 16 Aug 2024 09:01:52 +0000 (12:01 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 25 Sep 2024 11:07:42 +0000 (07:07 -0400)
commitd89d58f4888cde693e7707e13623eb50bb6435c2
tree379a8ffa9e93d315f39c9c63a01e534889b0ffdb
parentde2cd39fc11b2f55b7f40f2a3036ca27327e4461
vdpa/mlx5: Introduce async fw command wrapper

Introduce a new function mlx5_vdpa_exec_async_cmds() which
wraps the mlx5_core async firmware command API in a way
that will be used to parallelize certain operation in this
driver.

The wrapper deals with the case when mlx5_cmd_exec_cb() returns
EBUSY due to the command being throttled.

Signed-off-by: Dragos Tatulea <dtatulea@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Message-Id: <20240816090159.1967650-4-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/core/mlx5_vdpa.h
drivers/vdpa/mlx5/core/resources.c