aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2021-10-21 15:02:55 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2021-10-22 14:10:17 +0200
commit2199f562730dd1382946e0a2532afc38cd444129 (patch)
tree8b073d5a40e947b6eb93c877a0832b3c2d88a3b0 /net/netfilter
parentnetfilter: nfnetlink_queue: fix OOB when mac header was cleared (diff)
downloadlinux-dev-2199f562730dd1382946e0a2532afc38cd444129.tar.xz
linux-dev-2199f562730dd1382946e0a2532afc38cd444129.zip
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')
-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);