David Ahern 83c4425159 ipv6: Create init helper for fib6_nh
Similar to IPv4, consolidate the fib6_nh initialization into a helper.
As a new standalone function, add a cleanup path to put lwtstate on
error.

To avoid modifying fib6_config flags, move the reject check to a helper
that is invoked once by fib6_nh_init to reset the device and then
again in ip6_route_info_create to set the fib6_flags.

Signed-off-by: David Ahern <dsahern@gmail.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-03-29 10:48:03 -07:00
..
2018-05-11 00:10:56 +02:00
2018-07-24 14:10:43 -07:00
2016-12-25 17:21:23 +01:00
2018-05-16 07:24:30 +02:00
2019-03-29 10:48:03 -07:00
2019-03-22 10:38:23 -04:00