diff options
author | David Ahern <dsahern@gmail.com> | 2018-04-18 03:33:15 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-04-18 06:41:16 +0300 |
commit | 6edb3c96a5f028e0cee5fe80ad09b866eb2f6179 (patch) | |
tree | 36dafe25f191ca6a46a6d60515e94315b6d1e1dd /net/ipv6/ndisc.c | |
parent | 5e670d844b2a4e47d1b9b9aceb14dd3c12a6d4bf (diff) | |
download | linux-6edb3c96a5f028e0cee5fe80ad09b866eb2f6179.tar.xz |
net/ipv6: Defer initialization of dst to data path
Defer setting dst input, output and error until fib entry is copied.
The reject path from ip6_route_info_create is moved to a new function
ip6_rt_init_dst_reject with a helper doing the conversion from fib6_type
to dst error.
The remainder of the new ip6_rt_init_dst is an amalgamtion of dst code
from addrconf_dst_alloc and the non-reject path of ip6_route_info_create.
The dst output function is always ip6_output and the input function is
either ip6_input (local routes), ip6_mc_input (multicast routes) or
ip6_forward (anything else).
A couple of places using dst.error are updated to look at rt6i_flags.
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ndisc.c')
0 files changed, 0 insertions, 0 deletions