Re: [ovs-dev] [RFC net-next 03/22] ipv4: support for fib route lwtunnel encap attributes

2015-07-10 Thread roopa
On 7/10/15, 9:54 AM, Thomas Graf wrote: On 07/10/15 at 05:36pm, Eric Dumazet wrote: On Fri, 2015-07-10 at 16:19 +0200, Thomas Graf wrote: From: Roopa Prabhu + if (oif) + dev = __dev_get_by_index(net, oif); + ret = lwtunnel_build_state(dev, encap_type, +

Re: [ovs-dev] [RFC net-next 03/22] ipv4: support for fib route lwtunnel encap attributes

2015-07-10 Thread Thomas Graf
On 07/10/15 at 05:36pm, Eric Dumazet wrote: > On Fri, 2015-07-10 at 16:19 +0200, Thomas Graf wrote: > > From: Roopa Prabhu > > > > + if (oif) > > + dev = __dev_get_by_index(net, oif); > > + ret = lwtunnel_build_state(dev, encap_type, > > + encap, &lwtst

Re: [ovs-dev] [RFC net-next 03/22] ipv4: support for fib route lwtunnel encap attributes

2015-07-10 Thread Eric Dumazet
On Fri, 2015-07-10 at 16:19 +0200, Thomas Graf wrote: > From: Roopa Prabhu > + if (oif) > + dev = __dev_get_by_index(net, oif); > + ret = lwtunnel_build_state(dev, encap_type, > +encap, &lwtstate); > + if (!ret) { > + lwtunnel_s

[ovs-dev] [RFC net-next 03/22] ipv4: support for fib route lwtunnel encap attributes

2015-07-10 Thread Thomas Graf
From: Roopa Prabhu This patch adds support in ipv4 fib functions to parse user provided encap attributes and attach encap state data to fib_nh and rtable. Signed-off-by: Roopa Prabhu --- include/net/ip_fib.h | 5 ++- include/net/route.h | 1 + net/ipv4/fib_frontend.c | 8