diff options
author | Jason Gunthorpe <jgunthorpe@obsidianresearch.com> | 2017-08-14 23:57:39 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-08-23 00:04:22 +0300 |
commit | e3bf14bdc17a8e917f337760cc7cacf3232d7dbc (patch) | |
tree | d3cadc75b4c94b80f41118358053541e97f2ed86 /drivers/infiniband/core/device.c | |
parent | 1eb5be0ec79a7b21cd6b5b73d9de294dc1809e0f (diff) | |
download | linux-e3bf14bdc17a8e917f337760cc7cacf3232d7dbc.tar.xz |
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/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 91d7cea1a0b9..fc6be1175183 100644 --- a/drivers/infiniband/core/device.c +++ b/drivers/infiniband/core/device.c @@ -1252,5 +1252,7 @@ static void __exit ib_core_cleanup(void) destroy_workqueue(ib_wq); } +MODULE_ALIAS_RDMA_NETLINK(RDMA_NL_LS, 4); + module_init(ib_core_init); module_exit(ib_core_cleanup); |