Message ID | 1437733716-4494-1-git-send-email-nicolas.dichtel@6wind.com |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show |
On 07/24/15 at 12:28pm, Nicolas Dichtel wrote: > We need to copy this field (ip6_rt_cache_alloc() and ip6_rt_pcpu_alloc() > use ip6_rt_copy_init() to build a dst). > > CC: Thomas Graf <tgraf@suug.ch> > CC: Roopa Prabhu <roopa@cumulusnetworks.com> > Fixes: 19e42e451506 ("ipv6: support for fib route lwtunnel encap attributes") > Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Acked-by: Thomas Graf <tgraf@suug.ch> -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On 7/24/15, 3:28 AM, Nicolas Dichtel wrote: > We need to copy this field (ip6_rt_cache_alloc() and ip6_rt_pcpu_alloc() > use ip6_rt_copy_init() to build a dst). > > CC: Thomas Graf <tgraf@suug.ch> > CC: Roopa Prabhu <roopa@cumulusnetworks.com> > Fixes: 19e42e451506 ("ipv6: support for fib route lwtunnel encap attributes") > Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> > Acked-by: Roopa Prabhu <roopa@cumulusnetworks.com> Thanks! -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
From: Nicolas Dichtel <nicolas.dichtel@6wind.com> Date: Fri, 24 Jul 2015 12:28:35 +0200 > We need to copy this field (ip6_rt_cache_alloc() and ip6_rt_pcpu_alloc() > use ip6_rt_copy_init() to build a dst). > > CC: Thomas Graf <tgraf@suug.ch> > CC: Roopa Prabhu <roopa@cumulusnetworks.com> > Fixes: 19e42e451506 ("ipv6: support for fib route lwtunnel encap attributes") > Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Applied. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 67b2367126f3..ac01ab0886a5 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -2164,6 +2164,10 @@ static void ip6_rt_copy_init(struct rt6_info *rt, struct rt6_info *ort) #endif rt->rt6i_prefsrc = ort->rt6i_prefsrc; rt->rt6i_table = ort->rt6i_table; + if (ort->rt6i_lwtstate) { + lwtunnel_state_get(ort->rt6i_lwtstate); + rt->rt6i_lwtstate = ort->rt6i_lwtstate; + } } #ifdef CONFIG_IPV6_ROUTE_INFO
We need to copy this field (ip6_rt_cache_alloc() and ip6_rt_pcpu_alloc() use ip6_rt_copy_init() to build a dst). CC: Thomas Graf <tgraf@suug.ch> CC: Roopa Prabhu <roopa@cumulusnetworks.com> Fixes: 19e42e451506 ("ipv6: support for fib route lwtunnel encap attributes") Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> --- net/ipv6/route.c | 4 ++++ 1 file changed, 4 insertions(+)