]> git.droids-corp.org - dpdk.git/commit
vdpa/mlx5: reuse resources in reconfiguration
authorXueming Li <xuemingl@nvidia.com>
Sun, 8 May 2022 14:25:51 +0000 (17:25 +0300)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Mon, 9 May 2022 19:39:58 +0000 (21:39 +0200)
commit5fe068bf7a23eed56a73774a8a2c0c4defe2e8b2
tree8f35a9c0dfb0af95bf86bfb34a56ebb13ab45df7
parentb19cc62caf5773e3f17f06128476a2156141d2e2
vdpa/mlx5: reuse resources in reconfiguration

To speed up device resume, create reuseable resources during device
probe state, release when device is removed. Reused resources includes
TIS,
TD, VAR Doorbell mmap, error handling event channel and interrupt
handler, UAR, Rx event channel, NULL MR, steer domain and table.

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_event.c
drivers/vdpa/mlx5/mlx5_vdpa_mem.c
drivers/vdpa/mlx5/mlx5_vdpa_steer.c
drivers/vdpa/mlx5/mlx5_vdpa_virtq.c