[PATCH net-next RFC v2 3/3] mpls: support for ip tunnels

2015-06-18 Thread Roopa Prabhu
From: Roopa Prabhu Support ip mpls tunnels using the new lwt infrastructure. Signed-off-by: Roopa Prabhu --- include/linux/mpls_iptunnel.h |6 ++ include/net/mpls_iptunnel.h| 29 + include/uapi/linux/mpls_iptunnel.h | 26 + net/mpls/Kconfig |5

Re: [PATCH net-next RFC v2 3/3] mpls: support for ip tunnels

2015-06-19 Thread Robert Shearman
On 19/06/15 05:49, Roopa Prabhu wrote: From: Roopa Prabhu Support ip mpls tunnels using the new lwt infrastructure. Signed-off-by: Roopa Prabhu ... +int mpls_output(struct sock *sk, struct sk_buff *skb) +{ + struct mpls_iptunnel_encap *tun_encap_info; + struct mpls_shim_hdr *hdr

Re: [PATCH net-next RFC v2 3/3] mpls: support for ip tunnels

2015-06-20 Thread roopa
On 6/19/15, 9:06 AM, Robert Shearman wrote: Since the entire label stack and the output device is encoded in the route, this means that you won't get prefix-independent convergence with this implementation for an IGP route change. I.e. if you've got 10 million VPN routes via an IGP route for

Re: [PATCH net-next RFC v2 3/3] mpls: support for ip tunnels

2015-06-20 Thread roopa
On 6/19/15, 9:06 AM, Robert Shearman wrote: + +/* Push the new labels */ +hdr = mpls_hdr(skb); +bos = true; +for (i = tun_encap_info->labels - 1; i >= 0; i--) { +hdr[i] = mpls_entry_encode(tun_encap_info->label[i], + dec.ttl, 0, bos); dec is never i

Re: [PATCH net-next RFC v2 3/3] mpls: support for ip tunnels

2015-06-21 Thread Thomas Graf
On 06/18/15 at 09:49pm, Roopa Prabhu wrote: > diff --git a/net/mpls/Kconfig b/net/mpls/Kconfig > index 17bde79..3e87a6b 100644 > --- a/net/mpls/Kconfig > +++ b/net/mpls/Kconfig > @@ -27,4 +27,9 @@ config MPLS_ROUTING > help >Add support for forwarding of mpls packets. > > +config MP

Re: [PATCH net-next RFC v2 3/3] mpls: support for ip tunnels

2015-06-21 Thread roopa
On 6/21/15, 1:27 PM, Thomas Graf wrote: On 06/18/15 at 09:49pm, Roopa Prabhu wrote: diff --git a/net/mpls/Kconfig b/net/mpls/Kconfig index 17bde79..3e87a6b 100644 --- a/net/mpls/Kconfig +++ b/net/mpls/Kconfig @@ -27,4 +27,9 @@ config MPLS_ROUTING help Add support for forwarding