]> 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)
commitc21ae7c32ce475557e755dc33787d1aa81e16b69
tree517df35a906e4ab98a0e9e4a7d746cf69c625e33
parent5c174b4320b76187112ea1a9a91e716fffff04bc
parentcad64ca27e9d2a7c0e41eadcb4301e20ccfb2a62
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>