[Devel,RHEL7,COMMIT] ve/net/ipvs: allow IPVS modules autoload in CT

Submitted by Konstantin Khorenko on April 26, 2017, 8:19 a.m.

Details

Message ID 201704260819.v3Q8JfKl001934@finist_cl7.x64_64.work.ct
State New
Series "net/ipvs: allow IPVS in CT"
Headers show

Commit Message

Konstantin Khorenko April 26, 2017, 8:19 a.m.
The commit is pushed to "PSBM-63883-Docker-Swarm" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-514.16.1.vz7.30.7
------>
commit 3aad694f4b0c88322f0c3d654b01f88fe2cd9f72
Author: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
Date:   Wed Apr 26 12:19:41 2017 +0400

    ve/net/ipvs: allow IPVS modules autoload in CT
    
    we still need to add ip_vs module in /etc/modules-load.d/vz.conf
    to be able to use ipvs in CT, all other modules are request_module'ed
    from ip_vs.
    
    https://jira.sw.ru/browse/PSBM-63883
    Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
    Reviewed-by: Andrew Vagin <avagin@virtuozzo.com>
---
 kernel/kmod.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

Patch hide | download patch | download mbox

diff --git a/kernel/kmod.c b/kernel/kmod.c
index d2da80a..16b64ca 100644
--- a/kernel/kmod.c
+++ b/kernel/kmod.c
@@ -426,6 +426,22 @@  static const char * const ve0_allowed_mod[] = {
 	/* NFS */
 	"nfsv3",
 	"nfsv4",
+
+	/* IPVS */
+	"ip_vs_ftp",
+	"ip_vs_nq",
+	"ip_vs_wlc",
+	"ip6t_ipvs",
+	"ipt_ipvs",
+	"ip_vs_rr",
+	"ip_vs_pe_sip",
+	"ip_vs_lblc",
+	"ip_vs_wrr",
+	"ip_vs_sed",
+	"ip_vs_dh",
+	"ip_vs_sh",
+	"ip_vs_lblcr",
+	"ip_vs_lc",
 };
 
 /*