From: Thomas Weißschuh Date: Thu, 21 Oct 2021 13:02:55 +0000 (+0200) Subject: ipvs: autoload ipvs on genl access X-Git-Tag: v5.16-rc1~50^2~73^2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=2199f562730dd1382946e0a2532afc38cd444129;p=linux-2.6-block.git 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 Acked-by: Julian Anastasov Acked-by: Simon Horman Signed-off-by: Pablo Neira Ayuso --- 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 +MODULE_ALIAS_GENL_FAMILY(IPVS_GENL_NAME); + /* semaphore for IPVS sockopts. And, [gs]etsockopt may sleep. */ static DEFINE_MUTEX(__ip_vs_mutex);