[Devel] [PATCH RH7 2/4] Revert "vzprivnet: Flush rt cache each time rules change"

Pavel Tikhomirov ptikhomirov at virtuozzo.com
Wed Oct 19 05:20:55 PDT 2016


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;
 
-- 
2.7.4



More information about the Devel mailing list