]> git.baikalelectronics.ru Git - kernel.git/commit
ip6gre: add x-netns support
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Tue, 22 Apr 2014 08:15:24 +0000 (10:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Apr 2014 18:53:36 +0000 (14:53 -0400)
commit28cfb610acd31864445cf53a3e2de875cba52b8e
tree517df35a906e4ab98a0e9e4a7d746cf69c625e33
parent6f3ad9f01a7edb3bb3557afeaf12c8d40aa91fb5
ip6gre: 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>
net/ipv6/ip6_gre.c