summaryrefslogtreecommitdiff
path: root/net/netfilter/ipvs
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2021-10-21 16:02:55 +0300
committerPablo Neira Ayuso <pablo@netfilter.org>2021-10-22 15:10:17 +0300
commit2199f562730dd1382946e0a2532afc38cd444129 (patch)
tree8b073d5a40e947b6eb93c877a0832b3c2d88a3b0 /net/netfilter/ipvs
parent5648b5e1169ff1d6d6a46c35c0b5fbebd2a5cbb2 (diff)
downloadlinux-2199f562730dd1382946e0a2532afc38cd444129.tar.xz
ipvs: autoload ipvs on genl access
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 <linux@weissschuh.net> Acked-by: Julian Anastasov <ja@ssi.bg> Acked-by: Simon Horman <horms@verge.net.au> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/ipvs')
-rw-r--r--net/netfilter/ipvs/ip_vs_ctl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ipvs/ip_vs_ctl.c
index 29ec3ef63edc..0ff94c66641f 100644
--- a/net/netfilter/ipvs/ip_vs_ctl.c
+++ b/net/netfilter/ipvs/ip_vs_ctl.c
@@ -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);