Re: [PATCH net-next v2] route: allow to route in a peer netns via lwt framework

2015-07-27 Thread Nicolas Dichtel
Le 24/07/2015 17:39, Eric Dumazet a écrit : On Fri, 2015-07-24 at 16:16 +0200, Nicolas Dichtel wrote: This patch takes advantage of the newly added lwtunnel framework to allow the user to set routes that point to a peer netns. Packets are injected to the peer netns via the loopback device. It

Re: [PATCH net-next v2] route: allow to route in a peer netns via lwt framework

2015-07-24 Thread Alexei Starovoitov
On Fri, Jul 24, 2015 at 05:39:57PM +0200, Eric Dumazet wrote: > > On Fri, 2015-07-24 at 16:16 +0200, Nicolas Dichtel wrote: > > This patch takes advantage of the newly added lwtunnel framework to > > allow the user to set routes that point to a peer netns. > > > > Packets are injected to the peer

Re: [PATCH net-next v2] route: allow to route in a peer netns via lwt framework

2015-07-24 Thread Eric Dumazet
On Fri, 2015-07-24 at 16:16 +0200, Nicolas Dichtel wrote: > This patch takes advantage of the newly added lwtunnel framework to > allow the user to set routes that point to a peer netns. > > Packets are injected to the peer netns via the loopback device. It works > only when the output device is

[PATCH net-next v2] route: allow to route in a peer netns via lwt framework

2015-07-24 Thread Nicolas Dichtel
This patch takes advantage of the newly added lwtunnel framework to allow the user to set routes that point to a peer netns. Packets are injected to the peer netns via the loopback device. It works only when the output device is 'lo'. Example: ip route add 40.1.1.1/32 encap netns nsid 5 via dev l