From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Dichtel Subject: [RFC PATCH net-next 0/2] sit: allow to switch netns during encap/decap Date: Mon, 24 Jun 2013 16:13:57 +0200 Message-ID: <1372083239-9451-1-git-send-email-nicolas.dichtel@6wind.com> References: <87y5ijd98e.fsf@xmission.com> Cc: davem@davemloft.net, ebiederm@xmission.com, bcrl@kvack.org, ravi.mlists@gmail.com To: netdev@vger.kernel.org Return-path: Received: from 33.106-14-84.ripe.coltfrance.com ([84.14.106.33]:37611 "EHLO proxy.6wind.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751063Ab3FXOOU (ORCPT ); Mon, 24 Jun 2013 10:14:20 -0400 In-Reply-To: <87y5ijd98e.fsf@xmission.com> Sender: netdev-owner@vger.kernel.org List-ID: This patch is a follow up of the thread "switching network namespace midway": http://marc.info/?t=135101459500004&r=1&w=2 The goal of this serie is to add x-netns support for the module sit, ie the encapsulation addresses and the network device are not owned by the same namespace. Example to configure a tunnel: modprobe sit ip netns add netns1 ip link add sit1 type sit remote 10.16.0.121 local 10.16.0.249 ip l s sit1 netns netns1 ip netns exec netns1 ip l s lo up ip netns exec netns1 ip l s sit1 up ip netns exec netns1 ip a a dev sit1 192.168.2.123 remote 192.168.2.121 ip netns exec netns1 ip -6 a a dev sit1 2001:1234::123 remote 2001:1234::121 I sent this serie as an RFC to get feedback from people. Once this serie is approved, I will add the same feature for the module ipip and ip6_tunnel. include/linux/netdevice.h | 1 + include/net/ip_tunnels.h | 1 + net/core/dev.c | 34 ++++++++++++++++++++++---------- net/ipv4/ip_tunnel.c | 7 ++++++- net/ipv6/sit.c | 49 ++++++++++++++++++++++++----------------------- 5 files changed, 57 insertions(+), 35 deletions(-) Comments are welcome. Regards, Nicolas