]> git.droids-corp.org - dpdk.git/commit
vdpa/mlx5: cache and reuse hardware resources
authorXueming Li <xuemingl@nvidia.com>
Sun, 8 May 2022 14:25:52 +0000 (17:25 +0300)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Mon, 9 May 2022 19:39:58 +0000 (21:39 +0200)
commit934ef2b666908621b1b99ccbedcbb942459e91e7
treed6fab61bcac3b49500ee46162bdc06239ceb5616
parent5fe068bf7a23eed56a73774a8a2c0c4defe2e8b2
vdpa/mlx5: cache and reuse hardware resources

During device suspend and resume, resources are not changed normally.
When huge resources were allocated to VM, like huge memory size or lots
of queues, time spent on release and recreate became significant.

To speed up, this patch reuses resources like VM MR and VirtQ memory if
not changed.

Signed-off-by: Xueming Li <xuemingl@nvidia.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/vdpa/mlx5/mlx5_vdpa.c
drivers/vdpa/mlx5/mlx5_vdpa.h
drivers/vdpa/mlx5/mlx5_vdpa_mem.c
drivers/vdpa/mlx5/mlx5_vdpa_virtq.c