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)
commit28ec53f3a830750f1b5ccf73cb13dae66ade1660
tree62ddc9a532c6b03892af89ab6eead38716ef39cd
parent8b2fed8e2712e8c23665df3c9e0fbabbb76e466c
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