]> git.baikalelectronics.ru Git - kernel.git/commit
ip6tnl: add x-netns support
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Tue, 13 Aug 2013 15:51:12 +0000 (17:51 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Aug 2013 08:00:20 +0000 (01:00 -0700)
commit92acedce062ce65c53ce73f7377a5ec3f1fc5387
tree1de2d9f01b9947e87705c7d00082fa474e517c5f
parent0fbd8abd33b984ff8e01fbd49d4abe78fc212afb
ip6tnl: add x-netns support

This patch allows to switch the netns when packet is encapsulated or
decapsulated. In other word, the encapsulated packet is received in a netns,
where the lookup is done to find the tunnel. Once the tunnel is found, the
packet is decapsulated and injecting into the corresponding interface which
stands to another netns.

When one of the two netns is removed, the tunnel is destroyed.

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip6_tunnel.h
net/ipv6/ip6_gre.c
net/ipv6/ip6_tunnel.c