[RFC net-next 3/3] mpls: new ipmpls device for encapsulating IP packets as mpls

2015-06-01 Thread Robert Shearman
Allow creating an mpls device for the purposes of encapsulating IP packets with: ip link add type ipmpls This device defines its per-nexthop encapsulation data as a stack of labels, in the same format as for RTA_NEWST. It uses the encap data which will have been stored in the IP route to encaps

Re: [RFC net-next 3/3] mpls: new ipmpls device for encapsulating IP packets as mpls

2015-06-02 Thread roopa
On 6/1/15, 9:46 AM, Robert Shearman wrote: Allow creating an mpls device for the purposes of encapsulating IP packets with: ip link add type ipmpls This device defines its per-nexthop encapsulation data as a stack of labels, in the same format as for RTA_NEWST. It uses the encap data which w

Re: [RFC net-next 3/3] mpls: new ipmpls device for encapsulating IP packets as mpls

2015-06-02 Thread Robert Shearman
On 02/06/15 17:15, roopa wrote: On 6/1/15, 9:46 AM, Robert Shearman wrote: Allow creating an mpls device for the purposes of encapsulating IP packets with: ip link add type ipmpls This device defines its per-nexthop encapsulation data as a stack of labels, in the same format as for RTA_NEWS

Re: [RFC net-next 3/3] mpls: new ipmpls device for encapsulating IP packets as mpls

2015-06-02 Thread Eric W. Biederman
Robert Shearman writes: > Allow creating an mpls device for the purposes of encapsulating IP > packets with: > > ip link add type ipmpls > > This device defines its per-nexthop encapsulation data as a stack of > labels, in the same format as for RTA_NEWST. It uses the encap data > which will ha

Re: [RFC net-next 3/3] mpls: new ipmpls device for encapsulating IP packets as mpls

2015-06-02 Thread roopa
On 6/2/15, 9:33 AM, Robert Shearman wrote: On 02/06/15 17:15, roopa wrote: On 6/1/15, 9:46 AM, Robert Shearman wrote: Allow creating an mpls device for the purposes of encapsulating IP packets with: ip link add type ipmpls This device defines its per-nexthop encapsulation data as a stack o

Re: [RFC net-next 3/3] mpls: new ipmpls device for encapsulating IP packets as mpls

2015-06-02 Thread Robert Shearman
On 02/06/15 19:57, roopa wrote: On 6/2/15, 9:33 AM, Robert Shearman wrote: On 02/06/15 17:15, roopa wrote: On 6/1/15, 9:46 AM, Robert Shearman wrote: Allow creating an mpls device for the purposes of encapsulating IP packets with: ip link add type ipmpls This device defines its per-nextho

Re: [RFC net-next 3/3] mpls: new ipmpls device for encapsulating IP packets as mpls

2015-06-02 Thread Thomas Graf
On 06/02/15 at 01:26pm, Eric W. Biederman wrote: > What we really want here is xfrm-lite. By lite I mean the tunnel > selection criteria is simple enough that it fits into the normal > routing table instead of having to do weird flow based magic that > is rarely needed. > > I believe what we want

Re: [RFC net-next 3/3] mpls: new ipmpls device for encapsulating IP packets as mpls

2015-06-02 Thread Eric W. Biederman
Thomas Graf writes: > On 06/02/15 at 01:26pm, Eric W. Biederman wrote: >> What we really want here is xfrm-lite. By lite I mean the tunnel >> selection criteria is simple enough that it fits into the normal >> routing table instead of having to do weird flow based magic that >> is rarely needed.

Re: [RFC net-next 3/3] mpls: new ipmpls device for encapsulating IP packets as mpls

2015-06-02 Thread Eric W. Biederman
Thomas Graf writes: > On 06/02/15 at 01:26pm, Eric W. Biederman wrote: >> What we really want here is xfrm-lite. By lite I mean the tunnel >> selection criteria is simple enough that it fits into the normal >> routing table instead of having to do weird flow based magic that >> is rarely needed.

Re: [RFC net-next 3/3] mpls: new ipmpls device for encapsulating IP packets as mpls

2015-06-03 Thread Thomas Graf
On 06/02/15 at 06:23pm, Eric W. Biederman wrote: > Thomas I may have misunderstood what you are trying to do. > > Is what you were aiming for roughly the existing RTA_FLOW so you can > transmit packets out one network device and have enough information to > know which of a set of tunnels of a give

Re: [RFC net-next 3/3] mpls: new ipmpls device for encapsulating IP packets as mpls

2015-06-03 Thread Vivek Venkatraman
On Tue, Jun 2, 2015 at 2:06 PM, Robert Shearman wrote: > On 02/06/15 19:57, roopa wrote: >> >> On 6/2/15, 9:33 AM, Robert Shearman wrote: >>> >>> On 02/06/15 17:15, roopa wrote: On 6/1/15, 9:46 AM, Robert Shearman wrote: > > Allow creating an mpls device for the purposes of encap

Re: [RFC net-next 3/3] mpls: new ipmpls device for encapsulating IP packets as mpls

2015-06-04 Thread Robert Shearman
On 03/06/15 19:43, Vivek Venkatraman wrote: On Tue, Jun 2, 2015 at 2:06 PM, Robert Shearman wrote: On 02/06/15 19:57, roopa wrote: On 6/2/15, 9:33 AM, Robert Shearman wrote: On 02/06/15 17:15, roopa wrote: On 6/1/15, 9:46 AM, Robert Shearman wrote: Allow creating an mpls device for the

Re: [RFC net-next 3/3] mpls: new ipmpls device for encapsulating IP packets as mpls

2015-06-04 Thread Vivek Venkatraman
On Thu, Jun 4, 2015 at 11:46 AM, Robert Shearman wrote: > On 03/06/15 19:43, Vivek Venkatraman wrote: >> >> On Tue, Jun 2, 2015 at 2:06 PM, Robert Shearman >> wrote: >>> >>> On 02/06/15 19:57, roopa wrote: On 6/2/15, 9:33 AM, Robert Shearman wrote: > > > On 02/06/15 17: