mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
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>
This commit is contained in:
parent
8b2fed8e27
commit
28ec53f3a8
@ -3515,3 +3515,4 @@ MODULE_DESCRIPTION("smc socket address family");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_ALIAS_NETPROTO(PF_SMC);
|
||||
MODULE_ALIAS_TCP_ULP("smc");
|
||||
MODULE_ALIAS_GENL_FAMILY(SMC_GENL_FAMILY_NAME);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user