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. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Acked-by: Julian Anastasov <ja@ssi.bg> Acked-by: Simon Horman <horms@verge.net.au> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
5648b5e116
commit
2199f56273
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user