mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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 <[email protected]>
CC: Roopa Prabhu <[email protected]>
Fixes: 19e42e4515 ("ipv6: support for fib route lwtunnel encap attributes")
Signed-off-by: Nicolas Dichtel <[email protected]>
Acked-by: Thomas Graf <[email protected]>
Acked-by: Roopa Prabhu <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
6673a9f4e3
commit
d943659508
1 changed files with 4 additions and 0 deletions
|
|
@ -2161,6 +2161,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
|
||||
|
|
|
|||
Loading…
Reference in a new issue