aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/device.c
diff options
context:
space:
mode:
authorLeon Romanovsky <leonro@mellanox.com>2017-06-20 09:14:15 +0300
committerLeon Romanovsky <leon@kernel.org>2017-08-10 13:28:07 +0300
commit6c80b41abe22ae3c0d98f39a88f4b8fb501910d3 (patch)
tree45150e0e547188a665f691701e5748fd831d5923 /drivers/infiniband/core/device.c
parentRDMA/netlink: Add netlink device definitions to UAPI (diff)
downloadlinux-dev-6c80b41abe22ae3c0d98f39a88f4b8fb501910d3.tar.xz
linux-dev-6c80b41abe22ae3c0d98f39a88f4b8fb501910d3.zip
RDMA/netlink: Add nldev initialization flows
Add nldev init and exit flows to the RDMA/core. Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Reviewed-by: Steve Wise <swise@opengridcomputing.com>
Diffstat (limited to 'drivers/infiniband/core/device.c')
-rw-r--r--drivers/infiniband/core/device.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/core/device.c b/drivers/infiniband/core/device.c
index 5272c3806c39..66b109bc6753 100644
--- a/drivers/infiniband/core/device.c
+++ b/drivers/infiniband/core/device.c
@@ -1212,6 +1212,7 @@ static int __init ib_core_init(void)
goto err_sa;
}
+ nldev_init();
rdma_nl_register(RDMA_NL_LS, ibnl_ls_cb_table);
ib_cache_setup();
@@ -1237,6 +1238,7 @@ err:
static void __exit ib_core_cleanup(void)
{
ib_cache_cleanup();
+ nldev_exit();
rdma_nl_unregister(RDMA_NL_LS);
unregister_lsm_notifier(&ibdev_lsm_nb);
ib_sa_cleanup();