]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'gre_netns'
authorDavid S. Miller <davem@davemloft.net>
Wed, 23 Apr 2014 18:53:53 +0000 (14:53 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Apr 2014 18:53:53 +0000 (14:53 -0400)
commit15ef62746848334ab584b8bde14bf81fbe9f1ae9
tree517df35a906e4ab98a0e9e4a7d746cf69c625e33
parent4f78a9cee0528c98613566b0a0b77274583ed4c5
parent28cfb610acd31864445cf53a3e2de875cba52b8e
Merge branch 'gre_netns'

Nicolas Dichtel says:

====================
gre: allow to switch netns during encap/decap

The goal of this serie is to add x-netns support for the module ip_gre and
ip6_gre, ie the encapsulation addresses and the network device are not owned by
the same namespace.

Example to configure an ipv4 gre tunnel:

modprobe ip_gre
ip netns add netns1
ip netns exec netns1 ip link set lo up
ip link add gre1 type gre remote 10.16.0.121 local 10.16.0.249 ikey 10 okey 10 csum
ip link set gre1 netns netns1
ip netns exec netns1 ip link set gre1 up
ip netns exec netns1 ip addr add dev gre1 192.168.0.249 remote 192.168.0.121
====================

Signed-off-by: David S. Miller <davem@davemloft.net>