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

Submitted by Konstantin Khorenko on Oct. 31, 2016, 3:56 p.m.

Details

Message ID 201610311556.u9VFuiab014171@finist_cl7.x64_64.work.ct
State New
Series "do not rely on missing rtcache in vzprivnet_hook"
Headers show

Commit Message

Konstantin Khorenko Oct. 31, 2016, 3:56 p.m.
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@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@virtuozzo.com>
---
 net/ipv4/netfilter/ip_vzprivnet.c | 5 -----
 1 file changed, 5 deletions(-)

Patch hide | download patch | download mbox

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;