lvs-devel
|
To: | Simon Horman <horms@xxxxxxxxxxxx>, Julian Anastasov <ja@xxxxxx>, Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx>, Jozsef Kadlecsik <kadlec@xxxxxxxxxxxxx>, Florian Westphal <fw@xxxxxxxxx>, "David S. Miller" <davem@xxxxxxxxxxxxx>, Jakub Kicinski <kuba@xxxxxxxxxx>, netdev@xxxxxxxxxxxxxxx, lvs-devel@xxxxxxxxxxxxxxx, netfilter-devel@xxxxxxxxxxxxxxx, coreteam@xxxxxxxxxxxxx |
---|---|
Subject: | [PATCH] ipvs: autoload ipvs on genl access |
Cc: | Thomas Weißschuh <linux@xxxxxxxxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx |
From: | Thomas Weißschuh <linux@xxxxxxxxxxxxxx> |
Date: | Thu, 21 Oct 2021 15:02:55 +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 <linux@xxxxxxxxxxxxxx> --- net/netfilter/ipvs/ip_vs_ctl.c | 2 ++ 1 file changed, 2 insertions(+) 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); base-commit: d9aaaf223297f6146d9d7f36caca927c92ab855a -- 2.33.1 |
<Prev in Thread] | Current Thread | [Next in Thread> |
---|---|---|
|
Previous by Date: | Re: netfilter: ipvs: using maglev scheduler algorithm, Alexis Vachette |
---|---|
Next by Date: | Re: [PATCH] ipvs: autoload ipvs on genl access, Julian Anastasov |
Previous by Thread: | netfilter: ipvs: using maglev scheduler algorithm, Alexis Vachette |
Next by Thread: | Re: [PATCH] ipvs: autoload ipvs on genl access, Julian Anastasov |
Indexes: | [Date] [Thread] [Top] [All Lists] |