linux-kernel.vger.kernel.org archive mirror
 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

* Re: [PATCH] ipvs: autoload ipvs on genl access
  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
  1 sibling, 1 reply; 4+ messages in thread
From: Julian Anastasov @ 2021-10-21 18:24 UTC (permalink / raw)
  To: Thomas Weißschuh
  Cc: Simon Horman, Pablo Neira Ayuso, Jozsef Kadlecsik,
	Florian Westphal, David S. Miller, Jakub Kicinski, netdev,
	lvs-devel, netfilter-devel, coreteam, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 981 bytes --]


	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>

> ---
>  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 <ja@ssi.bg>

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

* Re: [PATCH] ipvs: autoload ipvs on genl access
  2021-10-21 18:24 ` Julian Anastasov
@ 2021-10-22 11:26   ` Simon Horman
  0 siblings, 0 replies; 4+ messages in thread
From: Simon Horman @ 2021-10-22 11:26 UTC (permalink / raw)
  To: Julian Anastasov
  Cc: Thomas Weißschuh, Pablo Neira Ayuso, Jozsef Kadlecsik,
	Florian Westphal, David S. Miller, Jakub Kicinski, netdev,
	lvs-devel, netfilter-devel, coreteam, linux-kernel

On Thu, Oct 21, 2021 at 09:24:34PM +0300, Julian Anastasov wrote:
> 
> 	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>

Acked-by: Simon Horman <horms@verge.net.au>


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

* Re: [PATCH] ipvs: autoload ipvs on genl access
  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 12:10 ` Pablo Neira Ayuso
  1 sibling, 0 replies; 4+ messages in thread
From: Pablo Neira Ayuso @ 2021-10-22 12:10 UTC (permalink / raw)
  To: Thomas Weißschuh
  Cc: Simon Horman, Julian Anastasov, Jozsef Kadlecsik,
	Florian Westphal, David S. Miller, Jakub Kicinski, netdev,
	lvs-devel, netfilter-devel, coreteam, linux-kernel

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

^ permalink raw reply	[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;
as well as URLs for NNTP newsgroup(s).