Skip to contentSkip to conversation

ipvs: autoload ipvs on genl access

PATCH Applied Thomas Weißschuh 4 participants 4 messages Oct 21, 2021 – Oct 22, 2021

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 net/netfilter/ipvs/ip_vs_ctl.c | 2 ++
 1 file changed, 2 insertions(+)
net/netfilter/ipvs/ip_vs_ctl.c +2 -0
index 29ec3ef63edc..0ff94c66641f 100644
@@ -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

Signature · 1 line
2.33.1
maintainer Acked-by on v1 1/1
#1 lore raw

Hello,

Quoted 5 lines · Thomas Weißschuh

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.

Looks good to me for -next tree, thanks!

Quoted 18 lines
---
 net/netfilter/ipvs/ip_vs_ctl.c | 2 ++
 1 file changed, 2 insertions(+)
net/netfilter/ipvs/ip_vs_ctl.c +2 -0
index 29ec3ef63edc..0ff94c66641f 100644
@@ -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);
 
Quoted 3 lines

base-commit: d9aaaf223297f6146d9d7f36caca927c92ab855a

Signature · 1 line
2.33.1

Regards

maintainer Acked-by
#2 lore raw
Quoted 9 lines · Julian Anastasov

Hello,

Quoted 4 lines · Thomas Weißschuh

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.

Quoted 5 lines
Quoted 1 line

Looks good to me for -next tree, thanks!

maintainer Applied
#3 lore raw
In reply to Thomas Weißschuh
Quoted 3 lines · Thomas Weißschuh

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