ipv6: Check nexthop flags during route lookup instead of carrier
authorIdo Schimmel <idosch@mellanox.com>
Sun, 7 Jan 2018 10:45:07 +0000 (12:45 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Jan 2018 02:29:40 +0000 (21:29 -0500)
commit14c5206c2d02495de995210d104cb7f084d82e2b
treea813a9c576f4926781178c8aecc87ace8a0b4fd3
parent5609b80a37f69f796548339e675256188b29c17d
ipv6: Check nexthop flags during route lookup instead of carrier

Now that the RTNH_F_LINKDOWN flag is set in nexthops, we can avoid the
need to dereference the nexthop device and check its carrier and instead
check for the presence of the flag.

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