sit: add support of x-netns
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Wed, 26 Jun 2013 14:11:28 +0000 (16:11 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Jun 2013 05:30:47 +0000 (22:30 -0700)
commit5e6700b3bf98fe98d630bf9c939ad4c85ce95592
treece408f081a9dacceb782e138ca0cbec379f4e8a4
parent621e84d6f373dcb273ebfd772638b8e7dc3c2c48
sit: add support of x-netns

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/ip_tunnels.h
net/ipv4/ip_tunnel.c
net/ipv6/sit.c