]> 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)
commit983eb1a4fed41b2e8f8674b02be92c52d3a932a8
tree62ddc9a532c6b03892af89ab6eead38716ef39cd
parent58ceeb263c4e0f082ed2e74b45f31f7f88ebf0bd
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