net: ipv6: Do not consider link state for nexthop validation
authorDavid Ahern <dsa@cumulusnetworks.com>
Mon, 24 Oct 2016 19:27:23 +0000 (12:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Oct 2016 20:33:12 +0000 (16:33 -0400)
commitd5d32e4b76687f4df9ad3ba8d3702b7347f51fa6
tree2457e16e66036cd52467f4abdf938df45b475aea
parent830218c1add1da16519b71909e5cf21522b7d062
net: ipv6: Do not consider link state for nexthop validation

Similar to IPv4, do not consider link state when validating next hops.

Currently, if the link is down default routes can fail to insert:
 $ ip -6 ro add vrf blue default via 2100:2::64 dev eth2
 RTNETLINK answers: No route to host

With this patch the command succeeds.

Fixes: 8c14586fc320 ("net: ipv6: Use passed in table for nexthop lookups")
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip6_route.h
net/ipv6/route.c