vdpa/mlx5: Add mkey leak detection
authorDragos Tatulea <dtatulea@nvidia.com>
Mon, 25 Dec 2023 15:12:03 +0000 (17:12 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 10 Jan 2024 18:01:38 +0000 (13:01 -0500)
commitf16d65124380ac6de8055c4a8e5373a1043bb09b
treea44bf3ea0bd0616ecb2a7398c25525976b8bb971
parenta06bd11b18fdf2d40e2b81d4318abc6cc38e70c9
vdpa/mlx5: Add mkey leak detection

Track allocated mrs in a list and show warning when leaks are detected
on device free or reset.

Reviewed-by: Gal Pressman <gal@nvidia.com>
Acked-by: Eugenio PĂ©rez <eperezma@redhat.com>
Signed-off-by: Dragos Tatulea <dtatulea@nvidia.com>
Message-Id: <20231225151203.152687-9-dtatulea@nvidia.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vdpa/mlx5/core/mlx5_vdpa.h
drivers/vdpa/mlx5/core/mr.c
drivers/vdpa/mlx5/net/mlx5_vnet.c