[Devel] [PATCH RHEL7 COMMIT] vzprivnet: Revert "vzprivnet: Flush rt cache each time rules change"

Konstantin Khorenko khorenko at virtuozzo.com
Mon Oct 31 08:56:44 PDT 2016


The commit is pushed to "branch-rh7-3.10.0-327.36.1.vz7.19.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-327.36.1.vz7.19.4
------>
commit fb943c98ba7610ed6c5c7db260695db3db4fb9b9
Author: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
Date:   Mon Oct 31 19:56:44 2016 +0400

    vzprivnet: Revert "vzprivnet: Flush rt cache each time rules change"
    
    This reverts commit 22b04a0a4094e558269a121c4f5fa9ababd5027d.
    
    https://jira.sw.ru/browse/PSBM-53646
    
    Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
---
 net/ipv4/netfilter/ip_vzprivnet.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/net/ipv4/netfilter/ip_vzprivnet.c b/net/ipv4/netfilter/ip_vzprivnet.c
index b590b4e..e37fe97 100644
--- a/net/ipv4/netfilter/ip_vzprivnet.c
+++ b/net/ipv4/netfilter/ip_vzprivnet.c
@@ -30,7 +30,6 @@
 #include <linux/ctype.h>
 #include <linux/sysctl.h>
 #include <linux/inet.h>
-#include <net/route.h>
 #include <asm/page.h>
 
 #include <linux/vzprivnet.h>
@@ -504,8 +503,6 @@ static ssize_t vzpriv_write(struct file * file, const char __user *buf,
 	if (err)
 		goto err;
 
-	rt_cache_flush(&init_net);
-
 	s = page;
 	s[count] = 0;
 
@@ -839,8 +836,6 @@ static ssize_t sparse_write(struct file * file, const char __user *buf,
 	if (err)
 		goto err;
 
-	rt_cache_flush(&init_net);
-
 	s = page;
 	s[count] = 0;
 


More information about the Devel mailing list