]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
RDMA/core: Add netlink command to modify FRMR aging
authorMichael Guralnik <michaelgur@nvidia.com>
Thu, 26 Feb 2026 13:52:14 +0000 (15:52 +0200)
committerLeon Romanovsky <leon@kernel.org>
Mon, 2 Mar 2026 18:45:37 +0000 (13:45 -0500)
commitd2ea675e86bab6563bbc0841e6c74eef54e83be7
tree7c168db542738f74cf64260a1f332c602ce6accf
parent50c035976af3d361cff27dd54b1736debd42c19a
RDMA/core: Add netlink command to modify FRMR aging

Allow users to set FRMR pools aging timer through netlink.
This functionality will allow user to control how long handles reside in
the kernel before being destroyed, thus being able to tune the tradeoff
between memory and HW object consumption and memory registration
optimization.
Since FRMR pools is highly beneficial for application restart scenarios,
this command allows users to modify the aging timer to their application
restart time, making sure the FRMR handles deregistered on application
teardown are kept for long enough in the pools for reuse in the
application startup.

Signed-off-by: Michael Guralnik <michaelgur@nvidia.com>
Reviewed-by: Patrisious Haddad <phaddad@nvidia.com>
Signed-off-by: Edward Srouji <edwards@nvidia.com>
Link: https://patch.msgid.link/20260226-frmr_pools-v4-9-95360b54f15e@nvidia.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/core/frmr_pools.c
drivers/infiniband/core/frmr_pools.h
drivers/infiniband/core/nldev.c
include/uapi/rdma/rdma_netlink.h