summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/cma.c
diff options
context:
space:
mode:
authorJason Gunthorpe <jgunthorpe@obsidianresearch.com>2017-08-14 14:57:39 -0600
committerDoug Ledford <dledford@redhat.com>2017-08-22 17:04:22 -0400
commite3bf14bdc17a8e917f337760cc7cacf3232d7dbc (patch)
treed3cadc75b4c94b80f41118358053541e97f2ed86 /drivers/infiniband/core/cma.c
parent1eb5be0ec79a7b21cd6b5b73d9de294dc1809e0f (diff)
downloadop-kernel-dev-e3bf14bdc17a8e917f337760cc7cacf3232d7dbc.zip
op-kernel-dev-e3bf14bdc17a8e917f337760cc7cacf3232d7dbc.tar.gz
rdma: Autoload netlink client modules
If a message comes in and we do not have the client in the table, then try to load the module supplying that client using MODULE_ALIAS to find it. This duplicates the scheme seen in other netlink muxes (eg nfnetlink). Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com> Reviewed-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/core/cma.c')
-rw-r--r--drivers/infiniband/core/cma.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c
index d8edd8b..b76de2e 100644
--- a/drivers/infiniband/core/cma.c
+++ b/drivers/infiniband/core/cma.c
@@ -4537,5 +4537,7 @@ static void __exit cma_cleanup(void)
destroy_workqueue(cma_wq);
}
+MODULE_ALIAS_RDMA_NETLINK(RDMA_NL_RDMA_CM, 1);
+
module_init(cma_init);
module_exit(cma_cleanup);
OpenPOWER on IntegriCloud