Commit d9436595 authored by Nicolas Dichtel's avatar Nicolas Dichtel Committed by David S. Miller
Browse files

ipv6: copy lwtstate in ip6_rt_copy_init()

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 <>
CC: Roopa Prabhu <>
Fixes: 19e42e45

 ("ipv6: support for fib route lwtunnel encap attributes")
Signed-off-by: default avatarNicolas Dichtel <>
Acked-by: default avatarThomas Graf <>
Acked-by: default avatarRoopa Prabhu <>
Signed-off-by: default avatarDavid S. Miller <>
parent 6673a9f4
......@@ -2161,6 +2161,10 @@ static void ip6_rt_copy_init(struct rt6_info *rt, struct rt6_info *ort)
rt->rt6i_prefsrc = ort->rt6i_prefsrc;
rt->rt6i_table = ort->rt6i_table;
if (ort->rt6i_lwtstate) {
rt->rt6i_lwtstate = ort->rt6i_lwtstate;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment