Message ID | 20211021130255.4177-1-linux@weissschuh.net (mailing list archive) |
---|---|
State | Awaiting Upstream |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | ipvs: autoload ipvs on genl access | expand |
Context | Check | Description |
---|---|---|
netdev/cover_letter | success | Single patches do not need cover letters |
netdev/fixes_present | success | Fixes tag not required for -next series |
netdev/patch_count | success | Link |
netdev/tree_selection | success | Guessed tree name to be net-next |
netdev/subject_prefix | warning | Target tree name not specified in the subject |
netdev/cc_maintainers | success | CCed 11 of 11 maintainers |
netdev/source_inline | success | Was 0 now: 0 |
netdev/verify_signedoff | success | Signed-off-by tag matches author and committer |
netdev/module_param | success | Was 0 now: 0 |
netdev/build_32bit | success | Errors and warnings before: 1 this patch: 1 |
netdev/kdoc | success | Errors and warnings before: 0 this patch: 0 |
netdev/verify_fixes | success | No Fixes tag |
netdev/checkpatch | success | total: 0 errors, 0 warnings, 0 checks, 8 lines checked |
netdev/build_allmodconfig_warn | success | Errors and warnings before: 1 this patch: 1 |
netdev/header_inline | success | No static functions without inline keyword in header files |
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>
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>
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
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);
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(+) base-commit: d9aaaf223297f6146d9d7f36caca927c92ab855a