Re: [PATCH net-next RFC v2 0/3] light weight tunnel infrastructure and driver

2015-06-19 Thread roopa

On 6/19/15, 7:38 AM, Robert Shearman wrote:
This series implements infrastructure for light weight tunnels to 
support

mpls label edge routers (ie mpls ip tunnels). As previously discussed
having netdevices will not scale. Hence this series introduces new 
RTA_ENCAP*

attributes to attach encap information with routes (following suggestion
from Eric Biederman).


Looks promising, thanks for posting this series Roopa!



The first patch introduces an infrastructure to support light weight 
tunnels

that dont have netdevices. The infrastructure allows tunnel drivers
to register handlers to parse and build tunnel encap data which can 
be attached

to each route nexthop.

The second patch adds support in ipv4 fib to carry such light weight 
tunnel

encap data.


I presume this isn't ready to be merged until IPv6 is done, right?
yes, I will be adding ipv6 support soon. I will post the next non-RFC 
series with the ipv6 changes


thanks,
Roopa

--
To unsubscribe from this list: send the line "unsubscribe netdev" in


Re: [PATCH net-next RFC v2 0/3] light weight tunnel infrastructure and driver

2015-06-19 Thread Robert Shearman

On 19/06/15 05:49, Roopa Prabhu wrote:

From: Roopa Prabhu 

This series implements infrastructure for light weight tunnels to support
mpls label edge routers (ie mpls ip tunnels). As previously discussed
having netdevices will not scale. Hence this series introduces new RTA_ENCAP*
attributes to attach encap information with routes (following suggestion
from Eric Biederman).


Looks promising, thanks for posting this series Roopa!



The first patch introduces an infrastructure to support light weight tunnels
that dont have netdevices. The infrastructure allows tunnel drivers
to register handlers to parse and build tunnel encap data which can be attached
to each route nexthop.

The second patch adds support in ipv4 fib to carry such light weight tunnel
encap data.


I presume this isn't ready to be merged until IPv6 is done, right?



The third patch implements mpls ip tunnels using this light weight tunnel
infrastructure.

Could not think of a better name, so, it is 'lwt' for 'light weight tunnels'
for now.


I can't think of a better name either.

Thanks,
Rob
--
To unsubscribe from this list: send the line "unsubscribe netdev" in


[PATCH net-next RFC v2 0/3] light weight tunnel infrastructure and driver

2015-06-18 Thread Roopa Prabhu
From: Roopa Prabhu 

This series implements infrastructure for light weight tunnels to support
mpls label edge routers (ie mpls ip tunnels). As previously discussed 
having netdevices will not scale. Hence this series introduces new RTA_ENCAP*
attributes to attach encap information with routes (following suggestion
from Eric Biederman).

The first patch introduces an infrastructure to support light weight tunnels
that dont have netdevices. The infrastructure allows tunnel drivers
to register handlers to parse and build tunnel encap data which can be attached
to each route nexthop.

The second patch adds support in ipv4 fib to carry such light weight tunnel
encap data.

The third patch implements mpls ip tunnels using this light weight tunnel
infrastructure.

Could not think of a better name, so, it is 'lwt' for 'light weight tunnels'
for now.

I do have iproute2 patches. Can post them separately if required
(they are currently in my github tree
https://github.com/CumulusNetworks/iproute2 (mpls branch))

Signed-off-by: Roopa Prabhu 

v2:
- bug fixes (more testing)
- feedback from Thomas
- A flag in lwtunnel state that allows using the chosen
  output device instead of redirecting dst output to the
  lwt output function.
- This flag can be set by the tunnel driver at tunnel state
  build time
- moved lwtstate pointer from dst_entry to rtable (seemed cleaner
looking at thomas's openvswitch patches)
- moved mpls iptunnel code into separate file (following erics and
roberts initial patches)

Roopa Prabhu (3):
  lwt: infrastructure to support light weight tunnels
  ipv4: add support for light weight tunnel encap attributes
  mpls: support for ip mpls tunnels

 include/linux/lwtunnel.h   |6 ++
 include/linux/mpls_iptunnel.h  |6 ++
 include/net/ip_fib.h   |7 +-
 include/net/lwtunnel.h |   84 +++
 include/net/mpls_iptunnel.h|   29 +
 include/net/route.h|3 +
 include/uapi/linux/lwtunnel.h  |   11 ++
 include/uapi/linux/mpls_iptunnel.h |   26 +
 include/uapi/linux/rtnetlink.h |3 +-
 net/Kconfig|5 +
 net/core/Makefile  |1 +
 net/core/lwtunnel.c|  162 
 net/ipv4/fib_frontend.c|8 ++
 net/ipv4/fib_semantics.c   |   93 +++-
 net/ipv4/route.c   |   33 +-
 net/mpls/Kconfig   |5 +
 net/mpls/Makefile  |1 +
 net/mpls/af_mpls.c |9 +-
 net/mpls/internal.h|3 +
 net/mpls/mpls_iptunnel.c   |  205 
 20 files changed, 692 insertions(+), 8 deletions(-)
 create mode 100644 include/linux/lwtunnel.h
 create mode 100644 include/linux/mpls_iptunnel.h
 create mode 100644 include/net/lwtunnel.h
 create mode 100644 include/net/mpls_iptunnel.h
 create mode 100644 include/uapi/linux/lwtunnel.h
 create mode 100644 include/uapi/linux/mpls_iptunnel.h
 create mode 100644 net/core/lwtunnel.c
 create mode 100644 net/mpls/mpls_iptunnel.c

-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html