[PATCH] ipvs: autoload ipvs on genl access

Subsystems: ipvs, netfilter, networking [general], the rest

STALE1761d

4 messages, 4 authors, 2021-10-22 · open the first message on its own page

[PATCH] ipvs: autoload ipvs on genl access

From: Thomas Weißschuh <linux@weissschuh.net>
Date: 2021-10-21 13:03:27

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>
---
 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

Re: [PATCH] ipvs: autoload ipvs on genl access

From: Julian Anastasov <ja@ssi.bg>
Date: 2021-10-21 18:33:32

	Hello,

On Thu, 21 Oct 2021, Thomas Weißschuh wrote:
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>
	Looks good to me for -next tree, thanks!

Acked-by: Julian Anastasov <ja@ssi.bg>
quoted hunk
---
 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
Regards

--
Julian Anastasov [off-list ref]

Re: [PATCH] ipvs: autoload ipvs on genl access

From: Simon Horman <horms@verge.net.au>
Date: 2021-10-22 11:26:40

On Thu, Oct 21, 2021 at 09:24:34PM +0300, Julian Anastasov wrote:
	Hello,

On Thu, 21 Oct 2021, Thomas Weißschuh wrote:
quoted
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>
	Looks good to me for -next tree, thanks!

Acked-by: Julian Anastasov <ja@ssi.bg>
Acked-by: Simon Horman <horms@verge.net.au>

Re: [PATCH] ipvs: autoload ipvs on genl access

From: Pablo Neira Ayuso <pablo@netfilter.org>
Date: 2021-10-22 12:10:38

On Thu, Oct 21, 2021 at 03:02:55PM +0200, Thomas Weißschuh wrote:
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.
Applied, thanks
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help