diff options
author | 2017-06-20 09:14:15 +0300 | |
---|---|---|
committer | 2017-08-10 13:28:07 +0300 | |
commit | 6c80b41abe22ae3c0d98f39a88f4b8fb501910d3 (patch) | |
tree | 45150e0e547188a665f691701e5748fd831d5923 /drivers/infiniband/core/device.c | |
parent | RDMA/netlink: Add netlink device definitions to UAPI (diff) | |
download | linux-6c80b41abe22ae3c0d98f39a88f4b8fb501910d3.tar.gz linux-6c80b41abe22ae3c0d98f39a88f4b8fb501910d3.tar.bz2 linux-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.c | 2 |
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(); |