summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorZhu Yanjun <yanjun.zhu@linux.dev>2026-03-13 05:30:55 +0300
committerLeon Romanovsky <leon@kernel.org>2026-03-30 20:47:43 +0300
commita60e3f3d6fbab9dc45c653e5046307e0e7fcde98 (patch)
tree386bb12d7a9db060bff52192f6c90be3fc14375b /include
parent5aa437c93d90f486ff5428183323c971cfeb4294 (diff)
downloadlinux-a60e3f3d6fbab9dc45c653e5046307e0e7fcde98.tar.xz
RDMA/nldev: Add dellink function pointer
Add a dellink function pointer to rdma_link_ops to allow drivers to clean up resources created during newlink. Reviewed-by: David Ahern <dsahern@kernel.org> Signed-off-by: Zhu Yanjun <yanjun.zhu@linux.dev> Link: https://patch.msgid.link/20260313023058.13020-2-yanjun.zhu@linux.dev Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/rdma/rdma_netlink.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/rdma/rdma_netlink.h b/include/rdma/rdma_netlink.h
index 326deaf56d5d..2fd1358ea57d 100644
--- a/include/rdma/rdma_netlink.h
+++ b/include/rdma/rdma_netlink.h
@@ -5,6 +5,7 @@
#include <linux/netlink.h>
#include <uapi/rdma/rdma_netlink.h>
+#include <rdma/ib_verbs.h>
struct ib_device;
@@ -126,6 +127,7 @@ struct rdma_link_ops {
struct list_head list;
const char *type;
int (*newlink)(const char *ibdev_name, struct net_device *ndev);
+ int (*dellink)(struct ib_device *dev);
};
void rdma_link_register(struct rdma_link_ops *ops);