summaryrefslogtreecommitdiffstats
path: root/net/smc/smc_diag.c
diff options
context:
space:
mode:
authorStefan Raspl <raspl@linux.ibm.com>2022-07-25 16:10:00 +0200
committerDavid S. Miller <davem@davemloft.net>2022-07-27 14:24:42 +0200
commit28ec53f3a830750f1b5ccf73cb13dae66ade1660 (patch)
tree62ddc9a532c6b03892af89ab6eead38716ef39cd /net/smc/smc_diag.c
parentnet/smc: Pass on DMBE bit mask in IRQ handler (diff)
downloadlinux-28ec53f3a830750f1b5ccf73cb13dae66ade1660.tar.xz
linux-28ec53f3a830750f1b5ccf73cb13dae66ade1660.zip
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>
Diffstat (limited to 'net/smc/smc_diag.c')
-rw-r--r--net/smc/smc_diag.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/smc/smc_diag.c b/net/smc/smc_diag.c
index 1fca2f90a9c7..80ea7d954ece 100644
--- a/net/smc/smc_diag.c
+++ b/net/smc/smc_diag.c
@@ -268,3 +268,4 @@ module_init(smc_diag_init);
module_exit(smc_diag_exit);
MODULE_LICENSE("GPL");
MODULE_ALIAS_NET_PF_PROTO_TYPE(PF_NETLINK, NETLINK_SOCK_DIAG, 43 /* AF_SMC */);
+MODULE_ALIAS_GENL_FAMILY(SMCR_GENL_FAMILY_NAME);