public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ipvs: autoload ipvs on genl access
@ 2021-10-21 13:02 Thomas Weißschuh
  2021-10-21 18:24 ` Julian Anastasov
  2021-10-22 12:10 ` Pablo Neira Ayuso
  0 siblings, 2 replies; 4+ messages in thread
From: Thomas Weißschuh @ 2021-10-21 13:02 UTC (permalink / raw)
  To: Simon Horman, Julian Anastasov, Pablo Neira Ayuso,
	Jozsef Kadlecsik, Florian Westphal, David S. Miller,
	Jakub Kicinski, netdev, lvs-devel, netfilter-devel, coreteam
  Cc: Thomas Weißschuh, linux-kernel

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


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-10-22 12:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-21 13:02 [PATCH] ipvs: autoload ipvs on genl access Thomas Weißschuh
2021-10-21 18:24 ` Julian Anastasov
2021-10-22 11:26   ` Simon Horman
2021-10-22 12:10 ` Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox