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