]> Git Repo - J-linux.git/commitdiff
ipvs: autoload ipvs on genl access
authorThomas Weißschuh <[email protected]>
Thu, 21 Oct 2021 13:02:55 +0000 (15:02 +0200)
committerPablo Neira Ayuso <[email protected]>
Fri, 22 Oct 2021 12:10:17 +0000 (14:10 +0200)
The kernel provides the functionality to automatically load modules
providing genl families. Use this to remove the need for users to
manually load the module.

Signed-off-by: Thomas Weißschuh <[email protected]>
Acked-by: Julian Anastasov <[email protected]>
Acked-by: Simon Horman <[email protected]>
Signed-off-by: Pablo Neira Ayuso <[email protected]>
net/netfilter/ipvs/ip_vs_ctl.c

index 29ec3ef63edc7a6b59b37bd0eb5e95b25e32bf57..0ff94c66641f4817ad3473fd81f8f598380b3cf8 100644 (file)
@@ -48,6 +48,8 @@
 
 #include <net/ip_vs.h>
 
+MODULE_ALIAS_GENL_FAMILY(IPVS_GENL_NAME);
+
 /* semaphore for IPVS sockopts. And, [gs]etsockopt may sleep. */
 static DEFINE_MUTEX(__ip_vs_mutex);
 
This page took 0.055328 seconds and 4 git commands to generate.