rdma: Autoload netlink client modules
authorJason Gunthorpe <jgunthorpe@obsidianresearch.com>
Mon, 14 Aug 2017 20:57:39 +0000 (14:57 -0600)
committerDoug Ledford <dledford@redhat.com>
Tue, 22 Aug 2017 21:04:22 +0000 (17:04 -0400)
commite3bf14bdc17a8e917f337760cc7cacf3232d7dbc
treed3cadc75b4c94b80f41118358053541e97f2ed86
parent1eb5be0ec79a7b21cd6b5b73d9de294dc1809e0f
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>
drivers/infiniband/core/cma.c
drivers/infiniband/core/device.c
drivers/infiniband/core/iwcm.c
drivers/infiniband/core/netlink.c
drivers/infiniband/core/nldev.c
include/rdma/rdma_netlink.h