[Devel] [PATCH rh7 1/7] Revert "ve/netfilter/ipt_CLUSTERIP: Pass ve net instead of init_net"

Vladimir Davydov vdavydov at parallels.com
Fri Jun 26 03:00:23 PDT 2015


This reverts commit 05f27248a3f1e0154d22d77bbc7987b34e3d1936.

netfilter/ipt_CLUSTERIP has been turned per net namespace upstream, so
we'd better drop this hack and pull the upstream code instead. This will
be done by the following patches.

Signed-off-by: Vladimir Davydov <vdavydov at parallels.com>
---
 net/ipv4/netfilter/ipt_CLUSTERIP.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/net/ipv4/netfilter/ipt_CLUSTERIP.c b/net/ipv4/netfilter/ipt_CLUSTERIP.c
index 79944da8a70f..a2e2b61cd7da 100644
--- a/net/ipv4/netfilter/ipt_CLUSTERIP.c
+++ b/net/ipv4/netfilter/ipt_CLUSTERIP.c
@@ -384,8 +384,7 @@ static int clusterip_tg_check(const struct xt_tgchk_param *par)
 				return -EINVAL;
 			}
 
-			dev = dev_get_by_name(get_exec_env()->ve_netns,
-					      e->ip.iniface);
+			dev = dev_get_by_name(&init_net, e->ip.iniface);
 			if (!dev) {
 				pr_info("no such interface %s\n",
 					e->ip.iniface);
-- 
2.1.4




More information about the Devel mailing list