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

Submitted by Pavel Tikhomirov on Oct. 19, 2016, 12:20 p.m.

Details

Message ID 1476879657-21581-3-git-send-email-ptikhomirov@virtuozzo.com
State New
Series "do not rely on missing rtcache in vzprivnet_hook"
Headers show

Commit Message

Pavel Tikhomirov Oct. 19, 2016, 12:20 p.m.
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;