]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: Enable module load on netlink usage
authorStefan Raspl <raspl@linux.ibm.com>
Mon, 25 Jul 2022 14:10:00 +0000 (16:10 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Jul 2022 12:24:42 +0000 (13:24 +0100)
commit0843df178bcc67a9df2de7efc3ab04c3cb3d6312
tree62ddc9a532c6b03892af89ab6eead38716ef39cd
parentd11b08e614f5648f5ab21499f0d968291f0d5f9b
net/smc: Enable module load on netlink usage

Previously, the smc and smc_diag modules were automatically loaded as
dependencies of the ism module whenever an ISM device was present.
With the pending rework of the ISM API, the smc module will no longer
automatically be loaded in presence of an ISM device. Usage of an AF_SMC
socket will still trigger loading of the smc modules, but usage of a
netlink socket will not.
This is addressed by setting the correct module aliases.

Signed-off-by: Stefan Raspl <raspl@linux.ibm.com>
Signed-off-by: Wenjia Zhang < wenjia@linux.ibm.com>
Reviewed-by: Tony Lu <tonylu@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/af_smc.c
net/smc/smc_diag.c