]> git.droids-corp.org - dpdk.git/commit
vdpa/mlx5: support device cleanup callback
authorXueming Li <xuemingl@nvidia.com>
Sun, 8 May 2022 14:25:53 +0000 (17:25 +0300)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Mon, 9 May 2022 19:39:58 +0000 (21:39 +0200)
commitd7e5d5a7e54a8fd4e031c4825bed35aa505e2417
tree4f7a5fb025ace0a3ebdada09b8b27046a909d061
parent934ef2b666908621b1b99ccbedcbb942459e91e7
vdpa/mlx5: support device cleanup callback

This patch supports device cleanup callback API which is called when
the device is disconnected from the VM. Cached resources like VM MR and
VQ memory are released.

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