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
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
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
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
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
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