ipv6: Ignore dead routes during lookup
authorIdo Schimmel <idosch@mellanox.com>
Sun, 7 Jan 2018 10:45:09 +0000 (12:45 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Jan 2018 02:29:40 +0000 (21:29 -0500)
commit8067bb8c1d3599e137dee445d65b64db90ebc6f5
tree704e1f5efb55ba66711f3369a4a827432c90477b
parent44c9f2f206f880c959fa4b43618e3f7fe2cd6157
ipv6: Ignore dead routes during lookup

Currently, dead routes are only present in the routing tables in case
the 'ignore_routes_with_linkdown' sysctl is set. Otherwise, they are
flushed.

Subsequent patches are going to remove the reliance on this sysctl and
make IPv6 more consistent with IPv4.

Before this is done, we need to make sure dead routes are skipped during
route lookup, so as to not cause packet loss.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Acked-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c