diff options
| author | Patrisious Haddad <phaddad@nvidia.com> | 2024-10-31 13:22:51 +0200 |
|---|---|---|
| committer | Leon Romanovsky <leon@kernel.org> | 2024-11-04 06:57:21 -0500 |
| commit | dc6be4418a1144cce422093cde0245c76cdcaff0 (patch) | |
| tree | 50de99fd94e648e813e5f2d4fd1506fe2ba9fc92 /include/rdma | |
| parent | 0bd2c61df95321e1ec123017cd8657360d15a24e (diff) | |
| download | linux-dc6be4418a1144cce422093cde0245c76cdcaff0.tar.gz linux-dc6be4418a1144cce422093cde0245c76cdcaff0.tar.bz2 linux-dc6be4418a1144cce422093cde0245c76cdcaff0.zip | |
RDMA/core: Add device ufile cleanup operation
Add a driver operation to allow preemptive cleanup of ufile HW resources
before the standard ufile cleanup flow begins. Thus, expediting the
final cleanup phase which leads to fast teardown overall.
This allows the use of driver specific clean up procedures to make the
cleanup process more efficient.
Signed-off-by: Patrisious Haddad <phaddad@nvidia.com>
Link: https://patch.msgid.link/cabe00d75132b5732cb515944e3c500a01fb0b4a.1730373303.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'include/rdma')
| -rw-r--r-- | include/rdma/ib_verbs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index 67551133b522..3417636da960 100644 --- a/include/rdma/ib_verbs.h +++ b/include/rdma/ib_verbs.h @@ -2675,6 +2675,12 @@ struct ib_device_ops { */ void (*del_sub_dev)(struct ib_device *sub_dev); + /** + * ufile_cleanup - Attempt to cleanup ubojects HW resources inside + * the ufile. + */ + void (*ufile_hw_cleanup)(struct ib_uverbs_file *ufile); + DECLARE_RDMA_OBJ_SIZE(ib_ah); DECLARE_RDMA_OBJ_SIZE(ib_counters); DECLARE_RDMA_OBJ_SIZE(ib_cq); |
